/* ─────────────────────────────────────────────────────────────
   Idea Board page (cw-ib-*) — loaded only on /idea-board/.
   Tokens, buttons, pills come from cw-theme.css.
───────────────────────────────────────────────────────────── */

.cw-ib-page {
  background: var(--cw-mist);
  padding-bottom: 80px;
}

/* ── Hero ── */
.cw-ib-hero {
  position: relative;
  overflow: hidden;
  background: var(--cw-white);
  border-bottom: 1px solid var(--cw-border);
}

.cw-ib-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(74, 148, 148, 0.1), transparent 70%);
  pointer-events: none;
}

.cw-ib-hero__inner {
  position: relative;
  padding-top: 58px;
  padding-bottom: 44px;
  text-align: center;
}

.cw-ib-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cw-teal-tint);
  border-radius: 9999px;
  padding: 6px 16px 6px 11px;
  margin-bottom: 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cw-teal-dark);
}

.cw-ib-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cw-clay);
  box-shadow: 0 0 0 3px rgba(198, 117, 96, 0.19);
}

body.cw-body .cw-ib-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 62px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 auto 18px;
  max-width: 820px;
}

.cw-ib-hero__title em {
  color: var(--cw-teal);
  font-style: italic;
}

.cw-ib-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cw-ink-light);
  max-width: 580px;
  margin: 0 auto 28px;
}

.cw-ib-hero__sub strong {
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-ib-hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cw-ib-hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--cw-quiet);
}

.cw-ib-hero__stats strong {
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-ib-hero__stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cw-fog-dark);
}

/* ── Spotlight ── */
.cw-ib-spotlight {
  padding-top: 36px;
}

.cw-ib-spotlight__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.cw-ib-spotlight__grid--single {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.cw-ib-making {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(150deg, #0f6667 0%, #338080 55%, #4a9494 100%);
  color: var(--cw-white);
  padding: 30px 32px 28px;
  box-shadow: 0 14px 40px rgba(15, 102, 103, 0.28);
}

.cw-ib-making::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.cw-ib-making__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 5px 13px 5px 10px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw-ib-making__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb4a2;
  box-shadow: 0 0 0 3px rgba(255, 180, 162, 0.3);
}

.cw-ib-making__body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cw-ib-making__body > .cw-ib-avatar {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2));
}

.cw-ib-making__text {
  flex: 1;
  min-width: 0;
}

.cw-ib-making__cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-bottom: 6px;
  text-transform: uppercase;
}

body.cw-body .cw-ib-making__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--cw-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cw-ib-making__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 18px;
  max-width: 440px;
}

.cw-ib-making__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}

.cw-ib-making__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cw-ib-making__meta svg {
  color: #ffb4a2;
}

.cw-ib-making__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.cw-ib-leader {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  padding: 28px 28px 24px;
  box-shadow: 0 8px 30px rgba(45, 45, 53, 0.07);
}

.cw-ib-leader__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.cw-ib-leader__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cw-clay-tint);
  color: var(--cw-clay-dark);
  border-radius: 9999px;
  padding: 5px 13px 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cw-ib-leader__badge svg {
  color: var(--cw-clay);
}

.cw-ib-leader__closes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--cw-quiet);
  font-weight: 500;
}

.cw-ib-leader__body {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
}

.cw-ib-leader__body > .cw-ib-avatar {
  width: 52px;
  height: 52px;
}

.cw-ib-leader__text {
  flex: 1;
  min-width: 0;
}

.cw-ib-leader__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cw-quiet);
  margin-bottom: 5px;
  text-transform: uppercase;
}

body.cw-body .cw-ib-leader__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 9px;
}

.cw-ib-leader__desc {
  font-size: 13px;
  color: var(--cw-ink-light);
  line-height: 1.5;
  margin: 0;
}

.cw-ib-leader__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cw-fog);
  font-size: 12.5px;
  color: var(--cw-quiet);
}

.cw-ib-leader__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--cw-clay);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.cw-ib-leader__add:hover {
  color: var(--cw-clay-dark);
}

/* ── Avatar ── */
.cw-ib-avatar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(45, 45, 53, 0.06), 0 2px 6px rgba(45, 45, 53, 0.1);
  object-fit: cover;
}

.cw-ib-avatar svg {
  display: block;
  width: 78%;
  height: 78%;
  margin-bottom: -4%;
}

/* ── Row inspiration image (right side) ── */
.cw-ib-row__image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(45, 45, 53, 0.06), 0 2px 6px rgba(45, 45, 53, 0.1);
}

.cw-ib-row__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Love button ── */
.cw-ib-love {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  padding: 9px 0;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--cw-fog);
  border: 1.5px solid transparent;
  color: var(--cw-clay);
  transition: all 140ms ease;
}

.cw-ib-love:hover {
  background: rgba(198, 117, 96, 0.08);
  border-color: rgba(198, 117, 96, 0.33);
  transform: translateY(-1px);
}

.cw-ib-love.is-active {
  background: var(--cw-clay);
  border-color: var(--cw-clay);
  color: var(--cw-white);
}

.cw-ib-love.is-active svg {
  fill: currentColor;
}

.cw-ib-love__count {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cw-ib-love--big {
  width: 72px;
  padding: 12px 0;
}

.cw-ib-love--big .cw-ib-love__count {
  font-size: 16px;
}

/* ── How it works ── */
.cw-ib-steps-section {
  padding: 56px 0 16px;
}

.cw-ib-steps-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

body.cw-body .cw-ib-steps-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--cw-ink);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
}

.cw-ib-steps-title em {
  color: var(--cw-teal);
  font-style: italic;
}

.cw-ib-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cw-ib-steps__line {
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cw-fog-dark) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.cw-ib-step {
  position: relative;
  z-index: 1;
  background: var(--cw-white);
  border-radius: 16px;
  border: 1px solid var(--cw-border);
  padding: 28px 26px 26px;
  box-shadow: 0 4px 20px rgba(45, 45, 53, 0.05);
}

.cw-ib-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cw-ib-step__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.cw-ib-step__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: #9a9ca6;
}

body.cw-body .cw-ib-step__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 9px;
}

.cw-ib-step__desc {
  font-size: 14px;
  color: var(--cw-ink-light);
  line-height: 1.65;
  margin: 0 0 16px;
}

.cw-ib-step__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cw-fog);
  color: var(--cw-ink-mid);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cw-ib-step__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cw-clay);
}

.cw-ib-step:last-child .cw-ib-step__tag-dot {
  background: var(--cw-teal);
}

/* ── Board ── */
.cw-ib-board-section {
  padding-top: 40px;
}

.cw-ib-board {
  background: var(--cw-white);
  border-radius: 20px;
  border: 1px solid var(--cw-border);
  box-shadow: 0 8px 36px rgba(45, 45, 53, 0.06);
  overflow: hidden;
}

.cw-ib-board__head {
  padding: 24px 26px 0;
}

.cw-ib-board__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cw-ib-board__eyebrow {
  color: var(--cw-clay);
  margin-bottom: 8px;
}

body.cw-body .cw-ib-board__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.cw-ib-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--cw-border);
  overflow-x: auto;
}

.cw-ib-tab {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--cw-quiet);
  cursor: pointer;
  transition: color 120ms ease;
}

.cw-ib-tab:hover {
  background: transparent;
  color: var(--cw-ink);
  border-bottom-color: var(--cw-fog-dark);
}

.cw-ib-tab.is-active,
.cw-ib-tab.is-active:hover {
  background: transparent;
  color: var(--cw-ink);
  font-weight: 600;
  border-bottom-color: var(--cw-clay);
}

.cw-ib-tab__count {
  margin-left: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cw-fog-dark);
  background: var(--cw-fog);
  border-radius: 9999px;
  padding: 1px 7px;
}

.cw-ib-tab.is-active .cw-ib-tab__count {
  color: var(--cw-clay);
  background: rgba(198, 117, 96, 0.08);
}

.cw-ib-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  flex-wrap: wrap;
}

.cw-ib-search {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.cw-ib-search svg {
  position: absolute;
  left: 14px;
  color: var(--cw-quiet);
  pointer-events: none;
}

.cw-ib-page .cw-ib-search input[type="search"] {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: 10px;
  border: 1px solid var(--cw-border);
  background: var(--cw-mist);
  font-size: 14px;
  font-family: inherit;
  color: var(--cw-ink);
  outline: none;
  transition: border-color 120ms ease, background 120ms ease;
}

.cw-ib-page .cw-ib-search input[type="search"]:focus {
  border-color: var(--cw-clay);
  background: var(--cw-white);
}

.cw-ib-sort {
  position: relative;
}

.cw-ib-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--cw-border);
  background: var(--cw-white);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--cw-ink-light);
  font-weight: 500;
  white-space: nowrap;
}

.cw-ib-sort__label {
  color: var(--cw-quiet);
}

.cw-ib-sort__value {
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-ib-sort__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 41;
  background: var(--cw-white);
  border-radius: 12px;
  border: 1px solid var(--cw-border);
  box-shadow: 0 12px 32px rgba(45, 45, 53, 0.16);
  padding: 6px;
  min-width: 180px;
}

.cw-ib-sort__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--cw-ink-light);
  font-weight: 500;
}

.cw-ib-sort__menu button:hover {
  background: var(--cw-fog);
}

.cw-ib-sort__menu button[aria-selected="true"] {
  background: var(--cw-fog);
  color: var(--cw-ink);
  font-weight: 600;
}

.cw-ib-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px 12px;
  font-size: 12.5px;
  color: var(--cw-quiet);
}

.cw-ib-hint svg {
  color: var(--cw-clay);
  flex-shrink: 0;
}

/* ── Rows ── */
.cw-ib-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--cw-fog);
  background: var(--cw-white);
  transition: background 120ms ease;
  cursor: pointer;
}

.cw-ib-row:hover,
.cw-ib-row:focus-visible {
  background: #fcfcff;
}

.cw-ib-row__rank {
  width: 22px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--cw-quiet);
  flex-shrink: 0;
}

.cw-ib-row__rank.is-top {
  color: var(--cw-clay);
}

.cw-ib-row__body {
  flex: 1;
  min-width: 0;
}

.cw-ib-row__titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

body.cw-body .cw-ib-row__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.cw-ib-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cw-ib-chip--vote {
  background: var(--cw-clay-tint);
  color: var(--cw-clay);
}

.cw-ib-chip--making {
  background: var(--cw-teal-tint);
  color: var(--cw-teal);
}

.cw-ib-chip--next {
  background: rgba(51, 128, 128, 0.08);
  color: var(--cw-teal-mid);
}

.cw-ib-chip--made {
  background: rgba(70, 70, 78, 0.07);
  color: #46464e;
}

.cw-ib-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-ib-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cw-fog);
  color: var(--cw-quiet);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 500;
}

.cw-ib-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--cw-ink-light);
  font-weight: 600;
}

.cw-ib-cat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cw-ib-empty {
  padding: 56px 26px;
  text-align: center;
}

.cw-ib-empty__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--cw-ink-light);
  margin-bottom: 6px;
}

.cw-ib-empty__sub {
  font-size: 14px;
  color: var(--cw-quiet);
  margin-bottom: 18px;
}

/* ── Join CTA ── */
.cw-ib-join-section {
  padding-top: 44px;
}

.cw-ib-join {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(150deg, #1a1c20, #2d2d35);
  color: var(--cw-white);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cw-ib-join::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 117, 96, 0.25), transparent 70%);
  pointer-events: none;
}

.cw-ib-join__text {
  position: relative;
  max-width: 560px;
}

.cw-ib-join__eyebrow {
  color: #ffb4a2;
}

body.cw-body .cw-ib-join__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--cw-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cw-ib-join__sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.cw-ib-join__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.cw-ib-join__cta .cw-button {
  justify-content: center;
}

.cw-ib-join__note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ── Modals ── */
.cw-ib-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px 40px;
  overflow-y: auto;
}

.cw-ib-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 32, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cw-ib-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--cw-white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(26, 28, 32, 0.4);
  overflow: hidden;
}

.cw-ib-modal__head {
  position: relative;
  background: linear-gradient(150deg, #0f6667, #4a9494);
  color: var(--cw-white);
  padding: 26px 30px 24px;
}

.cw-ib-modal__x {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-white);
}

.cw-ib-modal__x svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

.cw-ib-modal__x--dark {
  background: var(--cw-fog);
  color: var(--cw-ink-light);
}

.cw-ib-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 4px 12px 4px 9px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.cw-body .cw-ib-modal__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cw-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.cw-ib-modal__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.cw-ib-modal__body {
  padding: 24px 30px 26px;
}

.cw-ib-field {
  margin-bottom: 18px;
}

.cw-ib-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cw-ib-field__label-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cw-ink-mid);
  letter-spacing: 0.01em;
}

.cw-ib-field__hint {
  font-size: 11.5px;
  color: var(--cw-quiet);
}

.cw-ib-field input[type="text"],
.cw-ib-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--cw-border);
  background: var(--cw-mist);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--cw-ink);
  outline: none;
  transition: border-color 120ms ease;
}

.cw-ib-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.cw-ib-field input[type="text"]:focus,
.cw-ib-field textarea:focus {
  border-color: var(--cw-clay);
}

.cw-ib-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-ib-cats__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  border: 1.5px solid var(--cw-border);
  background: var(--cw-white);
  color: var(--cw-ink-light);
  transition: all 120ms ease;
}

.cw-ib-cats__pill:hover {
  border-color: rgba(198, 117, 96, 0.45);
}

.cw-ib-cats__pill.is-active {
  border-color: var(--cw-clay);
  background: rgba(198, 117, 96, 0.06);
  color: var(--cw-clay-dark);
  font-weight: 600;
}

.cw-ib-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 26px 20px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px dashed var(--cw-fog-dark);
  background: var(--cw-mist);
  transition: all 140ms ease;
  text-align: center;
}

.cw-ib-drop.is-drag,
.cw-ib-drop:hover {
  border-color: var(--cw-clay);
  background: rgba(198, 117, 96, 0.05);
}

.cw-ib-drop__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cw-fog);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-quiet);
}

.cw-ib-drop__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cw-ink-mid);
}

.cw-ib-drop__browse {
  color: var(--cw-clay);
}

.cw-ib-drop__hint {
  font-size: 12px;
  color: var(--cw-quiet);
}

.cw-ib-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cw-border);
}

.cw-ib-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.cw-ib-preview__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(26, 28, 32, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cw-white);
}

.cw-ib-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.cw-ib-modal__perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cw-quiet);
}

.cw-ib-modal__actions {
  display: flex;
  gap: 10px;
}

.cw-ib-modal__actions button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.cw-ib-modal__gate {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 36px;
}

.cw-ib-modal__gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cw-fog);
  color: var(--cw-quiet);
  margin-bottom: 14px;
}

body.cw-body .cw-ib-modal__gate h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--cw-ink);
  margin: 0 0 8px;
}

.cw-ib-modal__gate p {
  font-size: 14px;
  color: var(--cw-ink-light);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 18px;
}

.cw-ib-modal__gate-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Detail modal ── */
.cw-ib-modal__panel--detail {
  max-width: 620px;
}

.cw-ib-detail {
  padding: 28px 30px 26px;
}

.cw-ib-detail__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body.cw-body .cw-ib-detail__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--cw-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  padding-right: 36px;
}

.cw-ib-detail__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cw-ib-detail__desc {
  font-size: 14.5px;
  color: var(--cw-ink-light);
  line-height: 1.65;
}

.cw-ib-detail__desc p {
  margin: 0 0 10px;
}

.cw-ib-detail__desc:empty {
  display: none;
}

.cw-ib-detail__desc a,
.cw-ib-comment__text a {
  color: var(--cw-clay);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.cw-ib-detail__desc a:hover,
.cw-ib-comment__text a:hover {
  color: var(--cw-clay-dark);
}

.cw-ib-detail__image {
  margin: 16px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--cw-border);
}

.cw-ib-detail__image img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.cw-ib-detail__comments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--cw-fog);
}

body.cw-body .cw-ib-detail__comments-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cw-ink);
  margin: 0 0 12px;
}

.cw-ib-detail__comments-title span {
  color: var(--cw-quiet);
  font-size: 16px;
}

.cw-ib-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.cw-ib-comments__loading,
.cw-ib-comments__empty {
  font-size: 13px;
  color: var(--cw-quiet);
  padding: 6px 0;
}

.cw-ib-comment {
  display: flex;
  gap: 10px;
}

.cw-ib-comment .cw-ib-avatar {
  width: 34px;
  height: 34px;
}

.cw-ib-comment__bubble {
  flex: 1;
  min-width: 0;
  background: var(--cw-fog);
  border-radius: 12px;
  padding: 10px 14px;
}

.cw-ib-comment__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.cw-ib-comment__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--cw-ink);
}

.cw-ib-comment__date {
  font-size: 11.5px;
  color: var(--cw-quiet);
}

.cw-ib-comment__text {
  font-size: 13.5px;
  color: var(--cw-ink-light);
  line-height: 1.55;
}

.cw-ib-comment__text p {
  margin: 0 0 6px;
}

.cw-ib-comment__text p:last-child {
  margin-bottom: 0;
}

.cw-ib-comment-locked {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--cw-fog);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--cw-quiet);
}

.cw-ib-comment-locked a {
  color: var(--cw-clay);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cw-ib-comment-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.cw-ib-comment-form textarea {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--cw-border);
  background: var(--cw-mist);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--cw-ink);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

.cw-ib-comment-form textarea:focus {
  border-color: var(--cw-clay);
}

/* ── Toast ── */
.cw-ib-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: var(--cw-ink);
  color: var(--cw-white);
  border-radius: 9999px;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 36px rgba(26, 28, 32, 0.34);
  font-size: 14px;
  font-weight: 500;
  animation: cwIbToast 240ms ease-out;
}

.cw-ib-toast__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cw-clay);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes cwIbToast {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cw-ib-spotlight__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.cw-body .cw-ib-hero__title {
    font-size: 42px;
  }

  .cw-ib-steps {
    grid-template-columns: 1fr;
  }

  .cw-ib-steps__line {
    display: none;
  }

  .cw-ib-join {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }

  .cw-ib-row {
    gap: 12px;
    padding: 16px 16px;
  }

  .cw-ib-row__rank {
    display: none;
  }

  .cw-ib-row > .cw-ib-avatar {
    width: 40px;
    height: 40px;
  }

  .cw-ib-row__image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  body.cw-body .cw-ib-row__title {
    font-size: 19px;
  }

  .cw-ib-board__head,
  .cw-ib-toolbar,
  .cw-ib-hint {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cw-ib-making {
    padding: 24px 22px 22px;
  }

  body.cw-body .cw-ib-making__title {
    font-size: 27px;
  }

  .cw-ib-leader {
    padding: 22px 20px 18px;
  }

  .cw-ib-leader__body {
    flex-wrap: wrap;
  }

  .cw-ib-modal {
    padding: 4vh 12px 24px;
  }

  .cw-ib-modal__head,
  .cw-ib-modal__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cw-ib-detail {
    padding: 24px 20px 22px;
  }

  .cw-ib-comment-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cw-ib-comment-form textarea {
    flex: none;
    width: 100%;
  }
}
