/* Keep the existing cwhp podium, seven-card row and flip surfaces. */
.tg-ranking{box-sizing:border-box;width:100%;max-width:1280px;margin:28px auto 48px;padding:24px;color:#3f3025;background:#f8f2e7;border-radius:14px;min-width:0}
.tg-ranking-header{display:flex;gap:20px;align-items:center;justify-content:space-between}.tg-ranking-header h2{font:600 28px/1.2 Georgia,serif;margin:0}.tg-ranking-event{color:inherit;font-size:14px;text-underline-offset:4px}
.tg-ranking .cwhp-step{background:#e8dbc4;color:#81522d}.tg-ranking .cwhp-rank,.tg-ranking .cwhp-actions .cwhp-use{background:#d5a76d;border-color:#d5a76d}.tg-ranking .cwhp-image{background:#eee7d9}
#view-community.tg-community-ranking #communityHalloweenRanking{display:none!important}
.tg-ranking [data-tg-ranking-list]{min-width:0}.tg-ranking .cwhp-back{overflow-y:auto}
@media(max-width:640px){.tg-ranking{padding:14px;margin:20px auto 32px}.tg-ranking-header{align-items:flex-start;flex-direction:column;gap:10px}.tg-ranking-header h2{font-size:24px}.tg-ranking .cwhp-podium{gap:10px}.tg-ranking .cwhp-place[data-rank="1"] .cwhp-flip-inner{min-height:380px}.tg-ranking .cwhp-place:not([data-rank="1"]) .cwhp-flip-inner{min-height:320px}.tg-ranking .cwhp-back .cwhp-description{-webkit-line-clamp:3}.tg-ranking .cwhp-actions a{min-height:36px}}

.tg-ranking .cwhp-grid{display:block;margin:28px 0;overflow:visible}.tg-ranking .hw-other-entries{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:0;overflow:visible}
@media(max-width:1100px){.tg-ranking .hw-other-entries{display:flex;overflow-x:auto;padding-bottom:12px;scroll-snap-type:x mandatory}.tg-ranking .hw-other-entries .cwhp-flip{flex:0 0 180px;scroll-snap-align:start}}

@media(max-width:640px){.tg-ranking .cwhp-grid[data-mobile-podium="true"] .cwhp-podium{display:block}.tg-ranking .cwhp-grid .cwhp-place[hidden]{display:none}.tg-ranking .hw-other-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;overflow:visible;padding-bottom:0}.tg-ranking .hw-other-entries .cwhp-flip{min-width:0;width:auto}.tg-ranking .hw-other-entries .cwhp-flip-inner{height:236px;min-height:236px}.tg-ranking .hw-other-entries .cwhp-flip-toggle{padding:6px 6px 8px}.tg-ranking .hw-other-entries .cwhp-image{height:104px;flex:0 0 104px}.tg-ranking .hw-other-entries .cwhp-rank{top:10px;left:8px;font-size:10px;padding:3px 5px}.tg-ranking .hw-other-entries .cwhp-title{font-size:12px;line-height:1.3;min-height:2.6em;margin-top:4px}.tg-ranking .hw-other-entries .cwhp-vote-count{font-size:10px}.tg-ranking .hw-other-entries .cwhp-turn-hint{font-size:9px}.tg-ranking .hw-other-entries .cwhp-back{padding:10px 6px;gap:6px;justify-content:center}.tg-ranking .hw-other-entries .cwhp-description,.tg-ranking .hw-other-entries .cwhp-creator{display:none}.tg-ranking .hw-other-entries .cwhp-actions{margin:0}.tg-ranking .hw-other-entries .cwhp-back a,.tg-ranking .hw-other-entries .cwhp-back button{min-height:34px;font-size:10px;padding:4px;flex-shrink:0}}

/* R12: native Halloween tab geometry, Thanksgiving palette only. */
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle.cd-campaign-toggle{display:inline-flex!important;align-items:center;gap:6px;flex-shrink:0;min-height:38px;border:1px solid #b98335;border-radius:99px;padding:8px 12px;color:#78392c;background:#fff4df;font:inherit;font-weight:700}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle[aria-pressed="true"]{background:#78392c;color:#fff;border-color:#78392c}
/* Seasonal pill keeps its native Halloween geometry across mobile period resets. */
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle.cd-campaign-toggle{min-height:38px!important;height:auto!important;padding:8px 12px!important;border:1px solid #b98335!important;border-radius:99px!important;background:#fff4df!important;color:#78392c!important;font-weight:700!important;box-shadow:none!important}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle[aria-pressed="true"]{background:#78392c!important;color:#fff!important;border-color:#78392c!important}

/* Keep the added seasonal pill within the original period row at narrow widths. */
@media(max-width:360px){body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle.cd-campaign-toggle{padding-inline:8px!important;gap:4px}}

/* Seasonal choices share the original single row and native inactive button style. */
body#typewriterWorkshop #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle){flex-wrap:nowrap;align-items:center}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle svg,
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle svg{flex:none}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle:not([aria-pressed="true"]) span,
body#typewriterWorkshop #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle[aria-pressed="true"]) #communityThanksgivingToggle span{display:none}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle[aria-pressed="true"]{min-height:38px!important;height:auto!important;padding:8px 12px!important;border:1px solid #234c40!important;border-radius:99px!important;background:#234c40!important;color:#fff!important;font-weight:700!important;box-shadow:none!important}
@media(max-width:393px){
 body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods:has(#communityChristmasToggle) [data-period]{padding-inline:5px!important}
}
/* The desktop ranking rail is 294px wide; reserve room without shrinking labels. */
@media(min-width:761px){
 body#typewriterWorkshop #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle){gap:6px}
 body#typewriterWorkshop #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle) [data-period],
 body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle:not([aria-pressed="true"]){padding-inline:0!important}
}

/* P0: only equal-size seasonal labels; retain the original ranking component. */
body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle){flex-wrap:wrap}
body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle){box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;width:128px!important;height:38px!important;min-height:38px!important;flex:0 0 128px;padding:8px!important;gap:6px;border-radius:99px!important;font-family:inherit!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;letter-spacing:normal!important;border:1px solid #d5d9d6!important;background:#fff!important;color:#234c40!important;box-shadow:none!important}
body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle) span{display:inline!important}

body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle)[aria-pressed="true"]{background:#234c40!important;border-color:#234c40!important;color:#fff!important}
body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle) span{font:inherit!important;letter-spacing:inherit!important}
body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle) svg{width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important}
/* Keep the original date choices together below the two approved seasonal tabs. */
@media(max-width:760px){
 body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle){display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:0 6px}
 body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page :is(#communityThanksgivingToggle,#communityChristmasToggle){grid-column:span 3;justify-self:start}
 body#typewriterWorkshop.typewriter-theme #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle) [data-period]{grid-column:span 2;width:auto}
}
/* FE1 11/10 holiday ranking toggle, option A (operator 11/10): rounded pill with the Halloween button's finish —
   flat colour, no texture/stitching/gradient/shadow; unselected = light tint + own-colour 1px border + coloured text; selected = solid fill.
   Same size on both, >=44px tall; focus ring only for keyboard (:focus-visible). */
body#typewriterWorkshop #view-community.cw-community-page .cd-periods:has(#communityChristmasToggle#communityChristmasToggle){flex-wrap:wrap!important;gap:10px!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle,
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle.cd-campaign-toggle{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;width:calc(50% - 5px)!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:0 16px!important;border-radius:999px!important;border:1px solid!important;font:700 14px/1 var(--cw-font-ui,system-ui,sans-serif)!important;letter-spacing:0!important;cursor:pointer;box-shadow:none!important;filter:none!important;transform:none!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle svg,
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle svg{width:16px!important;height:16px!important;flex:none;filter:none!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle span,
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle span{display:inline!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle::before,body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle::after,
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle::before,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle::after{content:none!important;display:none!important}
/* Christmas */
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle{color:#a3202c!important;border-color:#c43a46!important;background:#fdf0f0!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle svg{color:#b3202f}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle[aria-pressed="true"]{color:#fff!important;border-color:#b3202f!important;background:#b3202f!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle[aria-pressed="true"] svg{color:#fff}
/* Thanksgiving */
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle.cd-campaign-toggle{color:#8a5410!important;border-color:#d98e22!important;background:#fff4e8!important}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle svg{color:#c97f1a}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle.cd-campaign-toggle[aria-pressed="true"]{color:#2b1d0e!important;border-color:#e39f2c!important;background:#e39f2c!important}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle[aria-pressed="true"] svg{color:#5a3608}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle[aria-pressed="false"]:hover{border-color:#b3202f!important;background:#fbe4e4!important}
body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle.cd-campaign-toggle[aria-pressed="false"]:hover{border-color:#c97f1a!important;background:#fdebd3!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle:focus,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle:focus{outline:none!important}
body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle:focus-visible,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle:focus-visible{outline:2px solid #171717!important;outline-offset:2px!important}
@media (prefers-reduced-motion:reduce){body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle{transition:none!important}}
@media (forced-colors:active){body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle{border-color:ButtonText!important}}
@media (max-width:480px){body#typewriterWorkshop #view-community.cw-community-page #communityChristmasToggle#communityChristmasToggle,body#typewriterWorkshop #view-community.cw-community-page #communityThanksgivingToggle#communityThanksgivingToggle.cd-campaign-toggle{width:min(160px,calc(50vw - 30px))!important;padding:0 10px!important}}
