:root {
  --cw-teal: #4a9494;
  --cw-teal-dark: #0f6667;
  --cw-teal-mid: #338080;
  --cw-teal-light: #ccf5f5;
  --cw-teal-tint: rgba(74, 148, 148, 0.08);
  --cw-clay: #c67560;
  --cw-clay-dark: #914a38;
  --cw-clay-tint: rgba(198, 117, 96, 0.08);
  --cw-ink: #1a1c20;
  --cw-ink-mid: #2d2d35;
  --cw-ink-light: #3f4948;
  --cw-quiet: #6f7979;
  --cw-mist: #f9f9ff;
  --cw-fog: #f0f0f6;
  --cw-fog-dark: #e2e2e8;
  --cw-border: #e2e2e8;
  --cw-white: #ffffff;
  --cw-shadow-card: 0 2px 12px rgba(45, 45, 53, 0.06);
  --cw-shadow-raised: 0 8px 32px rgba(45, 45, 53, 0.12);
  --cw-radius-card: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.cw-body {
  margin: 0;
  background: var(--cw-mist);
  color: var(--cw-ink);
  font-family: "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.cw-body a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cw-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.cw-main {
  min-height: 100vh;
  padding-top: 64px;
}

body.cw-mobile-nav-open {
  overflow: hidden;
}

.cw-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  background: rgba(249, 249, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cw-border);
}

.cw-site-header__inner {
  width: 100%;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cw-brand {
  display: inline-flex;
  align-items: center;
}

.cw-brand-mark {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.cw-mobile-nav {
  display: none;
}

.cw-mobile-header-actions {
  display: none;
}

.cw-mobile-nav__toggle {
  appearance: none;
  border: 0;
  padding: 0;
}

.cw-mobile-nav__toggle-lines {
  display: inline-grid;
  gap: 4px;
}

.cw-mobile-nav__toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.cw-mobile-nav__scrim {
  display: none;
}

.cw-primary-nav,
.cw-header-actions,
.cw-button-row,
.cw-footer-socials {
  display: flex;
  align-items: center;
}

.cw-primary-nav {
  gap: 2px;
}

.cw-primary-nav a,
.cw-search-button {
  color: var(--cw-ink-light);
  font-size: 14px;
}

.cw-primary-nav a {
  padding: 7px 15px;
  border-radius: 8px;
  font-weight: 400;
  transition: background 150ms ease, color 150ms ease;
}

.cw-primary-nav a:hover,
.cw-primary-nav a.is-active {
  background: var(--cw-teal-tint);
  color: var(--cw-teal);
}

.cw-primary-nav a.is-active {
  font-weight: 600;
}

.cw-header-actions {
  gap: 8px;
}

.cw-fcom-header-menu {
  display: flex;
  align-items: center;
}

.cw-fcom-header-menu .fcom_user_context_menu_items {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.cw-fcom-header-menu .fcom_user_context_menu_items > li:not(.fcom_notification_holder):not(.fcom_menu_item_user) {
  display: none !important;
}

.cw-fcom-header-menu .fcom_user_context_menu_items > li,
.cw-fcom-header-menu .fcom_user_context_menu_items li:last-child {
  margin: 0 !important;
}

.cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item {
  border-radius: 999px;
}

.cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item .fcom_menu_button,
.cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item > a {
  color: var(--cw-ink-light);
  border-radius: 999px;
  padding: 6px;
}

.cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item .fcom_menu_button:hover,
.cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item > a:hover {
  background: var(--cw-teal-tint);
  color: var(--cw-teal);
}

.cw-fcom-header-menu .fcom_user_context_menu_items .fcom_user_menu_item .user_avatar img {
  width: 36px;
  height: 36px;
}

.cw-fcom-header-menu .fcom_user_context_menu_items .fcom_user_menu_item .user_avatar .avatar_icon {
  width: 14px;
  height: 14px;
  right: -2px;
  bottom: -1px;
}

.cw-fcom-header-menu .fcom_user_context_menu_items .fcom_user_menu_item .fcom_profile_extend.fcom_extend_menu .fcom_profile_sub_menu {
  top: calc(100% + 10px);
  right: 0;
  z-index: 700;
}

.cw-fcom-header-menu .fcom_user_context_menu_items .fcom_theme_button .el-badge__content.is-fixed {
  box-sizing: border-box;
  top: 0;
  right: calc(10px + var(--el-badge-size, 18px) / 2);
  transform: translateY(-50%) translate(100%);
}

.cw-fcom-header-menu--desktop .fcom_user_context_menu_items .fcom_user_menu_item .user_avatar img {
  width: 38px;
  height: 38px;
}

.cw-search-button {
  display: inline-flex;
  padding: 8px;
  border-radius: 8px;
  transition: color 120ms ease;
}

.cw-search-button:hover {
  color: var(--cw-teal);
}

.cw-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--cw-border);
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--cw-ink-light);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.cw-sign-in:hover {
  border-color: var(--cw-teal);
  color: var(--cw-teal);
}

.cw-header-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 9px 20px;
  border-radius: 9999px;
  background: var(--cw-clay);
  color: var(--cw-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cw-header-join,
.cw-header-join:link,
.cw-header-join:visited {
  color: var(--cw-white) !important;
}

.cw-header-join:hover,
.cw-header-join:focus-visible {
  background: var(--cw-clay-dark);
  color: var(--cw-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198, 117, 96, 0.35);
}

.cw-header-join:focus-visible {
  outline: 2px solid rgba(198, 117, 96, 0.28);
  outline-offset: 3px;
}

.cw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9999px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, color 150ms ease, border-color 150ms ease;
}

.cw-button:hover {
  transform: translateY(-1px);
}

.cw-button-primary {
  background: var(--cw-clay);
  color: var(--cw-white);
}

.cw-button-primary,
.cw-button-primary:link,
.cw-button-primary:visited {
  color: var(--cw-white) !important;
}

.cw-button-primary:hover {
  background: var(--cw-clay-dark);
  box-shadow: 0 6px 20px rgba(198, 117, 96, 0.35);
}

.cw-button-ghost {
  border: 1.5px solid var(--cw-teal);
  background: transparent;
  color: var(--cw-teal);
  padding: 12px 26px;
}

.cw-button-ghost:hover {
  background: var(--cw-teal-tint);
}

.cw-button-small {
  padding: 9px 20px;
  font-size: 13px;
}

.cw-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cw-fog);
  color: var(--cw-ink-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cw-pill-small {
  padding: 3px 9px;
  font-size: 11px;
}

.cw-pill-teal {
  background: var(--cw-teal-tint);
  color: var(--cw-teal-dark);
}

.cw-pill-clay {
  background: var(--cw-clay-tint);
  color: var(--cw-clay-dark);
}

.cw-entry-content {
  font-size: 18px;
  line-height: 1.9;
}

.cw-entry-content p a,
.cw-entry-content p a:link,
.cw-entry-content p a:visited,
.cw-entry-content li a,
.cw-entry-content li a:link,
.cw-entry-content li a:visited,
.cw-entry-content blockquote a,
.cw-entry-content blockquote a:link,
.cw-entry-content blockquote a:visited,
.cw-entry-content figcaption a,
.cw-entry-content figcaption a:link,
.cw-entry-content figcaption a:visited,
.cw-entry-content td a,
.cw-entry-content td a:link,
.cw-entry-content td a:visited,
.cw-entry-content th a,
.cw-entry-content th a:link,
.cw-entry-content th a:visited {
  color: var(--cw-clay) !important;
  text-decoration: none;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.cw-entry-content p a:hover,
.cw-entry-content p a:focus-visible,
.cw-entry-content p a:active,
.cw-entry-content li a:hover,
.cw-entry-content li a:focus-visible,
.cw-entry-content li a:active,
.cw-entry-content blockquote a:hover,
.cw-entry-content blockquote a:focus-visible,
.cw-entry-content blockquote a:active,
.cw-entry-content figcaption a:hover,
.cw-entry-content figcaption a:focus-visible,
.cw-entry-content figcaption a:active,
.cw-entry-content td a:hover,
.cw-entry-content td a:focus-visible,
.cw-entry-content td a:active,
.cw-entry-content th a:hover,
.cw-entry-content th a:focus-visible,
.cw-entry-content th a:active {
  color: var(--cw-clay-dark) !important;
  text-decoration: none;
}

.cw-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.cw-entry-content h2,
.cw-entry-content h3,
.cw-entry-content h4 {
  color: var(--cw-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.18;
}

.cw-entry-content h2 {
  font-size: 38px;
}

.cw-entry-content h3 {
  font-size: 30px;
}

.cw-card-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0.6rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(196, 107, 59, 0.1);
  border: 1px solid rgba(196, 107, 59, 0.25);
  color: var(--cw-clay);
  text-decoration: none;
  width: max-content;
  max-width: 100%;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.cw-card-member-pill--linked,
a.cw-card-member-pill {
  cursor: pointer;
}

.cw-card-member-pill--linked:hover,
.cw-card-member-pill--linked:focus,
.cw-card-member-pill--linked:focus-visible {
  background: rgba(196, 107, 59, 0.95);
  border-color: rgba(196, 107, 59, 1);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
  box-shadow: 0 6px 14px rgba(196, 107, 59, 0.25);
}

.cw-card-member-pill__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.cw-card-member-pill__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-card-member-pill__arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 120ms ease;
}

.cw-card-member-pill--linked:hover .cw-card-member-pill__arrow,
.cw-card-member-pill--linked:focus .cw-card-member-pill__arrow {
  transform: translateX(2px);
}

.cw-card-member-pill--owned {
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(46, 125, 50, 0.28);
  color: #1b5e20;
}

.cw-site-footer {
  background: var(--cw-ink);
  padding: 56px 0 32px;
}

.cw-site-footer a,
.cw-site-footer a:link,
.cw-site-footer a:visited {
  text-decoration: none;
}

.cw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.cw-footer-logo {
  width: auto;
  height: 40px;
  margin-bottom: 16px;
}

.cw-footer-copy {
  max-width: 280px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
}

.cw-footer-credit,
.cw-footer-bottom {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.cw-footer-credit {
  margin-top: 12px;
}

.cw-footer-heading {
  margin: 0 0 16px;
  color: var(--cw-teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cw-footer-links {
  display: grid;
  gap: 10px;
}

.cw-footer-links a,
.cw-footer-socials a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 150ms ease;
}

.cw-site-footer .cw-footer-links a,
.cw-site-footer .cw-footer-links a:link,
.cw-site-footer .cw-footer-links a:visited {
  color: rgba(255, 255, 255, 0.45) !important;
}

.cw-footer-links a {
  font-size: 13px;
}

.cw-footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cw-footer-socials {
  gap: 16px;
  flex-wrap: wrap;
}

.cw-footer-socials a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.cw-site-footer .cw-footer-socials a,
.cw-site-footer .cw-footer-socials a:link,
.cw-site-footer .cw-footer-socials a:visited {
  color: rgba(255, 255, 255, 0.35) !important;
}

.cw-footer-socials a:hover {
  color: var(--cw-teal);
}

.cw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
}

@media (max-width: 1120px) {
  .cw-primary-nav a {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  :root {
    --cw-mobile-header-height: 60px;
  }

  .cw-site-header {
    position: static;
    backdrop-filter: none;
  }

  .cw-main {
    padding-top: 0;
  }

  .cw-site-header__inner,
  .cw-primary-nav,
  .cw-header-actions {
    gap: 10px;
  }

  .cw-site-header__inner {
    height: var(--cw-mobile-header-height);
    min-height: var(--cw-mobile-header-height);
    padding-top: 0;
    padding-bottom: 0;
  }

  .cw-primary-nav,
  .cw-header-actions {
    display: none;
  }

  .cw-mobile-nav {
    position: static;
    display: block;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .cw-mobile-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(74, 148, 148, 0.28);
    border-radius: 10px;
    background: var(--cw-white);
    color: var(--cw-teal);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(45, 45, 53, 0.04);
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  }

  .cw-mobile-nav.is-open .cw-mobile-nav__toggle,
  .cw-mobile-nav__toggle:hover {
    border-color: var(--cw-teal);
    color: var(--cw-teal-dark);
    background: var(--cw-teal-tint);
    box-shadow: 0 8px 24px rgba(74, 148, 148, 0.12);
  }

  .cw-mobile-nav__toggle:focus-visible,
  .cw-mobile-header-search:focus-visible,
  .cw-mobile-header-auth:focus-visible {
    outline: 2px solid rgba(74, 148, 148, 0.28);
    outline-offset: 3px;
  }

  .cw-mobile-nav__toggle-lines {
    gap: 3px;
  }

  .cw-mobile-nav__toggle-lines span {
    width: 16px;
    transition: transform 150ms ease, opacity 150ms ease;
  }

  .cw-mobile-nav.is-open .cw-mobile-nav__toggle-lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .cw-mobile-nav.is-open .cw-mobile-nav__toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .cw-mobile-nav.is-open .cw-mobile-nav__toggle-lines span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .cw-brand {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .cw-brand-mark {
    height: 40px;
  }

  .cw-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .cw-mobile-header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--cw-ink-light);
    transition: color 150ms ease, background 150ms ease;
  }

  .cw-mobile-header-search:hover {
    color: var(--cw-teal);
    background: var(--cw-teal-tint);
  }

  .cw-mobile-header-auth {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }

  .cw-mobile-header-auth:hover,
  .cw-mobile-header-auth:focus-visible {
    transform: none;
    box-shadow: none;
  }

  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items {
    gap: 6px;
  }

  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item .fcom_menu_button,
  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items li.top_menu_item > a {
    padding: 4px;
  }

  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items .fcom_user_menu_item .user_avatar img {
    width: 32px;
    height: 32px;
  }

  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items .fcom_user_menu_item .user_avatar .avatar_icon {
    width: 12px;
    height: 12px;
    right: -1px;
    bottom: 0;
  }

  .cw-mobile-nav.is-open .cw-mobile-nav__scrim {
    position: fixed;
    inset: calc(var(--cw-mobile-header-height) + 1px) 0 0;
    display: block;
    background: rgba(24, 41, 49, 0.28);
    backdrop-filter: blur(2px);
    z-index: 554;
  }

  .cw-mobile-nav__panel {
    position: fixed;
    top: calc(var(--cw-mobile-header-height) + 1px);
    left: 0;
    z-index: 560;
    width: min(360px, 76vw);
    max-width: 76vw;
    height: calc(100dvh - var(--cw-mobile-header-height) - 1px);
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 18px 16px 24px;
    border-top: 1px solid var(--cw-border);
    border-right: 1px solid var(--cw-border);
    border-bottom: 1px solid var(--cw-border);
    border-left: none;
    border-radius: 0;
    background: var(--cw-white);
    box-shadow: var(--cw-shadow-raised);
    overflow-y: auto;
  }

  .cw-mobile-nav__section {
    display: grid;
    gap: 8px;
  }

  .cw-mobile-nav__section-label {
    color: var(--cw-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
  }

  .cw-mobile-nav__links,
  .cw-mobile-nav__actions,
  .cw-mobile-nav__auth {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .cw-mobile-nav__links a,
  .cw-mobile-nav__search {
    position: relative;
    display: flex;
    align-items: center;
    column-gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--cw-ink-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
    background: transparent;
    transition: background 150ms ease, color 150ms ease;
  }

  .cw-mobile-nav__links a:hover,
  .cw-mobile-nav__links a.is-active,
  .cw-mobile-nav__search:hover {
    background: #f0f3f5;
    color: var(--cw-ink-light);
  }

  .cw-mobile-nav__links a.is-active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #697386;
    border-radius: 0 8px 8px 0;
  }

  .cw-mobile-nav__links a:focus-visible,
  .cw-mobile-nav__search:focus-visible {
    outline: 2px solid rgba(105, 115, 134, 0.32);
    outline-offset: 2px;
  }

  .cw-footer-grid,
  .cw-footer-bottom {
    grid-template-columns: 1fr;
  }

  .cw-footer-bottom {
    display: grid;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cw-container,
  .cw-site-header__inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cw-mobile-nav__panel {
    width: min(340px, 86vw);
    max-width: 86vw;
    padding: 16px 14px 20px;
  }

  .cw-brand-mark {
    height: 36px;
  }

  .cw-mobile-header-actions {
    gap: 8px;
  }

  .cw-mobile-header-actions .cw-fcom-header-menu .fcom_user_context_menu_items {
    gap: 4px;
  }

  .cw-mobile-header-auth {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
  }

  .cw-header-actions .cw-sign-in {
    display: none;
  }

  .cw-header-actions .cw-header-join {
    width: auto;
  }

  .cw-footer-socials {
    flex-direction: column;
    align-items: flex-start;
  }
}
