/* Spacious announcement rotation beneath the shared navigation. */
body#typewriterWorkshop #view-community.cw-community-page {
  padding-top: 0;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header {
  --cw-community-notice-edge: var(--cw-shell-edge, 16px);
  --cw-community-notice-bg: #242424;
  --cw-community-notice-foreground: #faf8f3;
  --cw-community-notice-muted: #d5d0c9;
  --cw-community-notice-link: #faf8f3;
  --cw-community-notice-focus: #eab18d;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 128px;
  margin: 0 calc(-1 * var(--cw-community-notice-edge)) 32px;
  padding: 0 var(--cw-community-notice-edge);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background-color: var(--cw-community-notice-bg);
  color: var(--cw-community-notice-foreground);
  transition: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="welcome"] {
  --cw-community-notice-bg: #242424;
  --cw-community-notice-foreground: #faf8f3;
  --cw-community-notice-muted: #d5d0c9;
  --cw-community-notice-link: #faf8f3;
  --cw-community-notice-focus: #eab18d;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="discover"] {
  --cw-community-notice-bg: #e8e0d5;
  --cw-community-notice-foreground: #3c342c;
  --cw-community-notice-muted: #665c53;
  --cw-community-notice-link: #744631;
  --cw-community-notice-focus: #744631;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween"] {
  --cw-community-notice-bg: #8b4534;
  --cw-community-notice-foreground: #fff7ec;
  --cw-community-notice-muted: #f3d8c8;
  --cw-community-notice-link: #fff7ec;
  --cw-community-notice-focus: #ffd3a8;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="start"] {
  --cw-community-notice-bg: #e4eaf0;
  --cw-community-notice-foreground: #303a45;
  --cw-community-notice-muted: #566574;
  --cw-community-notice-link: #384f67;
  --cw-community-notice-focus: #344f69;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header.cd-notice-colors-ready {
  transition: background-color 220ms ease;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro {
  display: block;
  min-width: 0;
  min-height: 128px;
  margin: 0;
  padding: 0;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro > .cd-notice-rotator {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 1120px;
  min-height: 128px;
  height: auto;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator:not(.cd-notice-ready) {
  display: flex;
  justify-content: center;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator:not(.cd-notice-ready) > :not(h1) {
  display: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator > h1 {
  margin: 0;
  color: var(--cw-community-notice-foreground);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator > h1::before {
  display: none;
  content: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator.cd-notice-ready > h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  min-width: 0;
  min-height: 128px;
  height: auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
  overflow: visible;
  text-align: center;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-title {
  flex: none;
  color: var(--cw-community-notice-foreground);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-description {
  display: block;
  min-width: 0;
  max-width: 68ch;
  margin: 0;
  overflow: visible;
  color: var(--cw-community-notice-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: clip;
  white-space: normal;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-community-hero-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: max-content;
  max-width: none;
  min-height: 28px;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cw-community-notice-link);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  box-shadow: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-short-label {
  display: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-control {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cw-community-notice-muted);
  line-height: 1;
  box-shadow: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-control svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-previous {
  justify-self: start;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-tools {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  min-width: 44px;
  height: 44px;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro nav,
body#typewriterWorkshop #view-community.cw-community-page .cd-campaign-toggle,
body#typewriterWorkshop #view-community.cw-community-page #communityHalloweenRanking[hidden] {
  display: none !important;
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header :is(.cd-community-hero-cta, .cd-notice-control):focus-visible {
  outline: 2px solid var(--cw-community-notice-focus);
  outline-offset: -2px;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-community-hero-cta:hover,
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-control:hover:not(:disabled) {
    background: transparent;
    color: var(--cw-community-notice-focus);
  }
}

@media (max-width: 760px) {
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header {
    --cw-community-notice-edge: var(--cw-shell-edge, 12px);
    min-height: 144px;
    margin-bottom: 28px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro,
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro > .cd-notice-rotator {
    min-height: 144px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-intro > .cd-notice-rotator {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-rotator > h1,
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-title {
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-title {
    flex: none;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message {
    min-height: 144px;
    height: auto;
    gap: 4px;
    padding: 12px 0;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-description {
    display: block;
    max-width: 56ch;
    font-size: 12px;
    line-height: 1.5;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-control {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-tools {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-community-hero-cta {
    min-height: 28px;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-long-label {
    display: none;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-short-label {
    display: inline;
  }
}

@media (max-width: 480px) {
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-community-hero-cta {
    flex: none;
    min-width: max-content;
    padding-inline: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header.cd-notice-colors-ready {
    transition: none;
  }
}

html.reduce-motion body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header.cd-notice-colors-ready {
  transition: none;
}

@media (forced-colors: active) {
  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header {
    border-bottom: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    transition: none;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header :is(.cd-notice-rotator > h1, .cd-notice-title, .cd-notice-description, .cd-notice-control) {
    color: CanvasText;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-community-hero-cta {
    color: LinkText;
  }

  body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header :is(.cd-community-hero-cta, .cd-notice-control):focus-visible {
    outline-color: Highlight;
  }
}

/* HALLOWEEN-BANNER-INPLACE: reuse the existing announcement strip, never add a row. */
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] {
  --cw-community-notice-bg: #faf4e9; --cw-community-notice-foreground: #29251f; --cw-community-notice-muted: #514b42; --cw-community-notice-link: #29251f;
  position: relative; isolation: isolate;
}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::before,
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::after {
  content: ""; position: absolute; inset-block: 0; width: min(30%, 400px); z-index: -1; pointer-events: none;
  background-image: url('community/halloween/community-halloween-papier-v1.webp'); background-repeat: no-repeat; background-size: auto 100%;
}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::before {
  left: 0; background-position: left bottom; mask-image: linear-gradient(to right,#000 65%,transparent);
}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::after {
  right: 0; background-position: right bottom; mask-image: linear-gradient(to left,#000 65%,transparent);
}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-intro > .cd-notice-rotator { display: block; }
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-control { display: none; }
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-title { white-space: normal; }
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message > .cd-notice-deadline { display: block; margin: 0; color: var(--cw-community-notice-muted); font-size: 12px; line-height: 1.5; }
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message > .cd-notice-deadline[hidden] { display: none; }
@media(max-width:760px) {
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-message { padding: 16px 30px; }
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::before,
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::after { width: 22%; background-size: auto 55%; }
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-description { max-width: 30ch; }
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-deadline { max-width: 31ch; font-size: 11px; }
}
@media(forced-colors:active) {
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::before,
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::after { display: none; }
}

body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-tools { display: none; }

/* Restore original artwork scale; the campaign remains inside the existing full-width strip. */
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-message{min-height:290px;justify-content:center;gap:7px;padding:24px 0}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-title{font-size:32px;line-height:1.12;max-width:620px;text-wrap:balance}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message > .cd-contest-ranking{display:inline-flex;align-items:center;min-height:32px;font-size:12px;color:var(--cw-community-notice-link);text-decoration:underline;text-underline-offset:4px}
body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header .cd-notice-message > .cd-contest-ranking[hidden]{display:none}
@media(max-width:760px){
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-message{min-height:290px;padding:20px 34px;gap:6px}
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"] .cd-notice-title{font-size:26px}
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::before,
 body#typewriterWorkshop #view-community.cw-community-page .cd-community-banner.cd-refined-header[data-notice-tone="halloween-contest"]::after{width:32%;background-size:auto 62%}
}
