/* R12 BANNER3: historical Halloween typography and controls. */
body#typewriterWorkshop.typewriter-theme .tg-entry-banner {
  --cb-bg: #faf3e5;
  --cb-ink: #2b2118;
  --cb-muted: #6f6355;
  --cb-accent: #f08a3c;
  position: relative; overflow: hidden; height: 260px; background: var(--cb-bg);
}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 680px; text-align: center; z-index: 3;
}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner h2.tg-entry-title { margin: 0 !important; font-size: 40px !important; line-height: 1.12 !important; font-weight: 650 !important; letter-spacing: -.02em !important; color: var(--cb-ink) !important; }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-sub { margin: 10px 0 0; font-size: 18px; color: var(--cb-ink); }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-meta { margin: 6px 0 0; font-size: 15px; color: var(--cb-muted); }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-cta { display: inline-block; margin-top: 18px; padding: 13px 30px; border-radius: 12px; background: var(--cb-accent);
  color: #2b1a0e; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 8px 20px rgba(240,138,60,.28); }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-link { display: block; margin-top: 12px; font-size: 14px; color: var(--cb-ink); text-decoration: underline; text-underline-offset: 3px; }
/* the original watercolour corners: pumpkin bottom-left, moon + cat bottom-right, same size as the first version */
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner { position: absolute; bottom: 0; z-index: 2; pointer-events: none; }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--left { left: 0; height: 173px; }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--right { right: 0; height: 202px; }
/* bag groups sit just inside the corners, a touch smaller than before, with the corner pumpkin, cat and leaves
   overlapping their base so they read as one still life instead of floating next to the text */
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group { position: absolute; bottom: -2px; height: 176px; width: auto; z-index: 1; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(90, 60, 30, .14)); }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--left { left: 150px; }
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--right { right: 150px; }
@media (max-width: 1100px) {
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-copy { width: 520px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group { height: 132px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--left { left: 112px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--right { right: 112px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner h2.tg-entry-title { font-size: 32px !important; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--left { height: 130px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--right { height: 152px; }
}
@media (max-width: 760px) {
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner { height: auto; padding: 24px 20px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-copy { position: static; transform: none; width: auto; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner h2.tg-entry-title { font-size: 27px !important; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-sub { font-size: 16px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--left { height: 92px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-corner--right { height: 108px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group { height: 92px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--left { left: 80px; }
  body#typewriterWorkshop.typewriter-theme .tg-entry-banner .cb-group--right { right: 80px; }
}


/* Keep the existing Community full-bleed shell gutter; sample internal geometry is unchanged. */
body#typewriterWorkshop.typewriter-theme .tg-entry-banner { margin:0 calc(-1 * var(--cw-shell-edge,16px)) 32px; }

/* Reset inherited paragraph rhythm only inside sample banner. */
body#typewriterWorkshop.typewriter-theme .tg-entry-banner {line-height:normal}

body#typewriterWorkshop.typewriter-theme .tg-entry-banner{box-sizing:border-box;border:0;border-radius:0;font-family:Manrope,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Segoe UI",Arial,sans-serif;font-size:16px;font-weight:400;letter-spacing:normal}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner h2.tg-entry-title{font-family:inherit!important;padding:0!important}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner p{font-family:inherit!important;font-weight:400!important;line-height:normal!important;padding:0!important}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner a{font-family:inherit;line-height:normal;border:0;letter-spacing:normal}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-cta{color:#2b1a0e!important}
body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-link{font-weight:400;color:#2b2118!important}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{width:calc(100% + 32px);margin:0 -16px 32px}
.tg-entry-banner a:focus-visible{outline:3px solid #b97527;outline-offset:4px}
#cwThanksgivingCustomEntry[hidden],#cwThanksgivingCommunityEntry[hidden]{display:none!important}
@media(max-width:760px){
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner{height:auto;min-height:0;padding:24px 20px}
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{width:calc(100% + 24px);margin:0 -12px 24px}
 .tg-entry-banner img{display:none!important}
}

/* R12 BANNER5: approved grouped artwork, 2x sources at 350 x 260 CSS px.
   Narrow desktop bleeds outward to reserve a 16px gap around the existing copy. */
@media(min-width:761px){
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::before,
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::after{content:"";position:absolute;bottom:0;width:350px;height:260px;z-index:1;pointer-events:none;background-size:100% 100%;background-repeat:no-repeat}
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::before{left:min(0px,calc(50% - 706px));background-image:url("campaign/thanksgiving/entries/banner-v22-left.webp")}
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::after{right:min(0px,calc(50% - 706px));background-image:url("campaign/thanksgiving/entries/banner-v22-right.webp")}
}
@media(min-width:761px) and (max-width:1100px){
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::before{left:min(0px,calc(50% - 626px))}
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner::after{right:min(0px,calc(50% - 626px))}
}

/* R11 FINAL: all four native ranking filters stay visible below the heading. */
@media(max-width:760px){
 body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-ranking > header{flex-direction:column;align-items:stretch;gap:10px}
 body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-rank-tools{width:100%;min-width:0;justify-content:flex-start}
 body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods{box-sizing:border-box;width:100%;max-width:100%;overflow:visible;justify-content:space-between;gap:2px!important}
 body#typewriterWorkshop.typewriter-theme #view-community.cd-community-914 .cd-periods button{flex:0 0 auto;min-width:0;padding-inline:8px!important;white-space:nowrap}
}


/* R12 BANNER5B: use the space between the unchanged side illustrations.
   Their narrow-screen bleed reserves 680px plus two 16px clearances. */
@media(min-width:1101px){
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner .tg-entry-copy{width:clamp(680px,calc(100% - 732px),780px)}
}
@media(min-width:1101px) and (max-width:1460px){
 body#typewriterWorkshop.typewriter-theme .tg-entry-banner h2.tg-entry-title{font-size:39px!important}
}

/* Custom keeps its historical compact card; Community retains its own banner. */
/* Halloween entries only. No ranking, navigation or general Community rules. */
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{position:relative;isolation:isolate;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:120px;margin:18px auto 24px;padding:20px 120px;background:#f7efe2;color:#2b2118;border:1px solid #e3d4bd;border-radius:12px;overflow:hidden;text-align:left}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-copy{position:relative;z-index:2;display:block}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-title{display:block;font:600 23px/1.2 Georgia,serif;color:#2b2118;margin:0 0 8px}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-summary{display:block;font-size:12px;line-height:1.5;color:#594631}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-cta{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 16px;background:#f08a3c;color:#2b2118;border:1px solid #f08a3c;border-radius:8px;font-size:13px;font-weight:650;line-height:1.25;text-decoration:none;white-space:nowrap}
@media(max-width:900px){body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{padding-left:84px;padding-right:84px;gap:16px}body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-title{font-size:20px}}
@media(max-width:640px){body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{min-height:100px;margin:12px auto 18px;padding:14px 14px 14px 38px;gap:8px;border-radius:10px}body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-title{font-size:17px;line-height:1.2;margin-bottom:5px}body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-summary{font-size:10px;line-height:1.4}body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-cta{font-size:11px;white-space:normal;max-width:72px;padding:8px;min-height:38px}}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{width:min(calc(100% - 48px),1180px);font-family:var(--cw-font-sans,"PingFang SC","Microsoft YaHei","Segoe UI",Arial,sans-serif);font-size:13px}
@media(max-width:760px){body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{width:calc(100% - 32px)}}

/* BANNER7: subtle paper finish; preserve the compact card's original geometry. */
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{
 border-color:#cbb597;
 background-color:#f7efe2;
 background-image:radial-gradient(rgba(119,86,48,.025) .5px,transparent .8px),radial-gradient(rgba(255,255,255,.18) .5px,transparent 1px);
 background-size:4px 5px,7px 6px;background-position:0 0,2px 3px;
 box-shadow:0 3px 12px rgba(91,63,32,.09),inset 0 1px 0 rgba(255,255,255,.65);
}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-title{color:#63432b}
/* BANNER8: fixed replaceable assets; all art is composited from approved v22 layers. */
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{
 --tg-corner-bl:image-set(url("campaign/thanksgiving/entries/cornerfix-bl.webp?v=cornerfix1") 1x,url("campaign/thanksgiving/entries/cornerfix-bl@2x.webp?v=cornerfix1") 2x);
 --tg-corner-tr:image-set(url("campaign/thanksgiving/entries/banner8-corner-tr.webp?v=banner9b") 1x,url("campaign/thanksgiving/entries/banner8-corner-tr@2x.webp?v=banner9b") 2x);
}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::before,
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::after{
 content:"";position:absolute;pointer-events:none;background-position:center;background-size:contain;background-repeat:no-repeat;
}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::before{
 left:-12px;bottom:-32px;width:120px;height:130px;background-image:var(--tg-corner-bl);
}
body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::after{
 right:-8px;top:-12px;width:80px;height:80px;opacity:.65;background-image:var(--tg-corner-tr);
}
@media(max-width:900px){
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::before{left:-42px}
}
@media(max-width:640px){
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::before{left:-88px;bottom:-32px;transform:none}
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::after{right:-20px;top:-60px}
}
/* Full-width bottom watercolor strip; desktop Community declarations are untouched. */
@media(max-width:760px){
 body#typewriterWorkshop.typewriter-theme #cwThanksgivingCommunityEntry{
  --tg-mobile-strip:image-set(url("campaign/thanksgiving/entries/banner8-strip.webp") 1x,url("campaign/thanksgiving/entries/banner8-strip@2x.webp") 2x);
  padding:16px 20px 100px;
  width:calc(100% + 2 * var(--cw-shell-edge,16px) + 8px);margin-left:calc(-1 * var(--cw-shell-edge,16px) - 4px);
 }
 body#typewriterWorkshop.typewriter-theme #cwThanksgivingCommunityEntry::before{
  content:"";display:block;position:absolute;left:0;top:auto;bottom:0;width:100%;height:96px;pointer-events:none;
  background:center bottom/cover no-repeat var(--tg-mobile-strip);
 }
}

/* BANNER9: phone gutters and a soft transition into the white Community shell. */
@media(max-width:760px){
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry{min-height:112px;padding-left:50px}
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::before{width:78px;height:84.5px;left:-42px;bottom:-20px;transform:scaleX(-1);-webkit-mask-image:linear-gradient(to right,transparent,#000 16px);mask-image:linear-gradient(to right,transparent,#000 16px)}
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry::after{width:52px;height:52px;right:-8px;top:-12px;opacity:.3}
 body#typewriterWorkshop.typewriter-theme #cwThanksgivingCommunityEntry{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-bottom:112px;background:linear-gradient(to bottom,var(--cb-bg) calc(100% - 28px),#fff calc(100% - 6px))}
 body#typewriterWorkshop.typewriter-theme #cwThanksgivingCommunityEntry::before{bottom:12px;background-size:contain;mask-image:linear-gradient(to bottom,#000 calc(100% - 10px),transparent 100%)}
}
@media(max-width:380px){
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-title{font-size:16px}
 body#typewriterWorkshop.typewriter-theme #view-input #cwThanksgivingCustomEntry .hw-entry-cta{max-width:64px}
}
