.tw-site h1,
.tw-site h2,
.tw-site h3,
.tw-cms-lines,
.tw-footer-intro > p {
  white-space: pre-line;
}
.cms-page {
  color: #171717;
}

.cms-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.cms-heading h1 {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin: 12px 0;
}
.cms-heading h1 > span {
  color: var(--tw-accent);
}
.cms-heading p,
.cms-panel-heading p {
  color: #71716b;
  font-size: 14px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.cms-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border: 1px solid #d8d8d1;
  background: transparent;
  border-radius: 30px;
  padding: 12px 18px;
  color: #222;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.cms-secondary:hover {
  border-color: var(--tw-accent);
  color: #c53812;
}
.cms-publish-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #eaeae3;
  border: 1px solid #deded6;
  border-radius: 16px;
  margin-bottom: 24px;
  position: sticky;
  top: 88px;
  z-index: 12;
  box-shadow: 0 4px 12px #00000005;
}
.cms-publish-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.cms-publish-bar small {
  color: #62625b;
}
.cms-save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b8058;
}
.cms-save-dot.is-dirty {
  background: var(--tw-accent);
}
.cms-publish-bar button:disabled {
  opacity: 0.55;
  cursor: default;
}
.cms-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #dcdcd5;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.cms-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #71716b;
}
.cms-tabs button > span {
  font-family: monospace;
  font-size: 10px;
  margin-right: 9px;
  opacity: 0.6;
}
.cms-tabs button[aria-pressed="true"] {
  background: #181818;
  color: white;
}
.cms-editor-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.cms-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cms-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 185px;
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
}
.cms-overline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #62625b;
  display: block;
  margin: 0 0 14px;
}
.cms-sidebar > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #62625b;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.cms-sidebar > button[aria-pressed="true"] {
  color: #a53112;
  background: #fbe4d9;
}
.cms-sidebar > button:hover {
  color: #171717;
}
.cms-sidebar small {
  font-size: 9px;
}
.cms-related {
  border-top: 1px solid #dcdcd5;
  margin-top: 20px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cms-related a {
  font-size: 11px;
  color: #71716b;
  text-decoration: none;
}
.cms-related a:hover {
  color: #c53812;
}
.cms-related .cms-overline {
  margin-bottom: 0;
}
.cms-main {
  min-width: 0;
}
.cms-panel {
  border: 1px solid #e2e2db;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
}
.cms-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}
.cms-panel-heading h2 {
  font-family: "Clash Display", sans-serif;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-size: 26px;
  margin: 0;
}
.cms-panel-heading .cms-overline {
  margin-bottom: 8px;
}
.cms-panel-heading .cms-field-search {
  width: 190px;
  min-width: 0 !important;
  font-size: 12px !important;
  padding: 10px 12px !important;
}
.cms-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.cms-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.cms-field > span {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  color: #4e4e49;
}
.cms-field-wide {
  grid-column: 1/-1;
}
.cms-field input,
.cms-field textarea {
  font: inherit;
  font-size: 13px !important;
  line-height: 1.7 !important;
  width: 100%;
  min-width: 0;
  resize: vertical;
}
.cms-field input[type="color"] {
  min-height: 45px;
  padding: 6px !important;
}
.cms-input-action {
  display: flex;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
}
.cms-input-action > button {
  flex: none;
  border: 1px solid #ddd;
  background: #f5f5f0;
  color: #45453e;
  border-radius: 10px;
  width: 44px;
  cursor: pointer;
}
.cms-input-action > button:hover {
  color: #c53812;
}
.cms-image-preview {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  border-radius: 8px;
  background: #eeeee8;
}
.cms-sections {
  background: #f6f6f1;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 28px;
  font-size: 12px;
}
.cms-sections summary {
  cursor: pointer;
  font-weight: 600;
}
.cms-sections summary span {
  float: right;
  color: #62625b;
  font-weight: 400;
}
.cms-sections > div {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 24px;
  padding-top: 18px;
}
.cms-sections label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
}
.cms-sections input,
.cms-seo-options input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  accent-color: var(--tw-accent);
  min-width: 16px !important;
}
.cms-collection-item {
  border: 1px solid #e2e2db;
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.cms-collection-item > summary {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
}
.cms-collection-item > summary::-webkit-details-marker {
  display: none;
}
.cms-collection-item > summary > strong {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cms-item-number {
  font-size: 10px;
  color: #62625b;
  font-family: monospace;
}
.cms-collection-item[open] > summary {
  background: #f6f6f1;
}
.cms-collection-body {
  padding: 20px;
}
.cms-row-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.cms-row-tools button {
  font-size: 10px;
  border: 0;
  padding: 7px 10px;
  background: #f3f3ee;
  border-radius: 5px;
  cursor: pointer;
}
.cms-row-tools button:disabled {
  opacity: 0.35;
  cursor: default;
}
.cms-row-tools .cms-delete {
  margin-left: auto;
  background: #fff0eb;
  color: #ad3819;
}
.cms-empty {
  text-align: center;
  padding: 50px 15px;
  color: #62625b;
  font-size: 13px;
}
.cms-empty > i {
  font-size: 24px;
}
.cms-empty h3 {
  font-size: 18px;
  color: #353530;
  margin: 16px 0 8px;
}
.cms-empty p {
  line-height: 1.7;
}
.cms-search-preview {
  background: #f8f8f5;
  border-radius: 14px;
  border: 1px solid #ebebe5;
  padding: 22px;
  margin-bottom: 30px;
  overflow-wrap: anywhere;
}
.cms-search-preview > span:not(.cms-overline) {
  font-size: 12px;
  color: #4e4e49;
}
.cms-search-preview h3 {
  color: #234e9d !important;
  font-size: 20px !important;
  font-family: Arial, sans-serif !important;
  font-weight: 400 !important;
  margin: 9px 0 !important;
}
.cms-search-preview p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #60605a;
  margin: 0;
}
.cms-social-preview {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid #e5e5df;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 28px;
  background: #f9f9f6;
}
.cms-social-preview > img {
  width: 160px;
  height: 150px;
  object-fit: contain;
  background: #eaeae3;
}
.cms-social-preview > div {
  padding: 15px;
  min-width: 0;
}
.cms-social-preview h3 {
  font-size: 16px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.cms-social-preview p {
  font-size: 12px;
  line-height: 1.5;
  color: #71716b;
  margin: 0;
}
.cms-social-preview .cms-overline {
  margin-bottom: 8px;
}
.cms-seo-options {
  border-top: 1px solid #e5e5df;
  padding-top: 24px;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}
.cms-seo-options > label {
  display: flex;
  gap: 12px;
  align-items: start;
  font-size: 12px;
  line-height: 1.6;
}
.cms-seo-options small {
  display: block;
  color: #62625b;
  font-size: 11px;
}
.cms-seo-options .cms-priority {
  align-items: center;
}
.cms-priority input {
  width: 80px !important;
}
.cms-related-links {
  display: flex;
  gap: 25px;
  padding-top: 25px;
}
.cms-related-links a {
  font-size: 11px;
  color: #b8401f;
}
.cms-alert,
.cms-success {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cms-alert {
  background: #ffebe5;
  color: #a12c10;
  border: 1px solid #efc8bc;
}
.cms-success {
  background: #e9f1e7;
  color: #3b683c;
  border: 1px solid #d7e4d3;
}
.cms-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 40vh;
  font-size: 14px;
  color: #777;
}
.cms-loader {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: var(--tw-accent);
  border-radius: 50%;
  animation: cms-spin 0.8s linear infinite;
}
@keyframes cms-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .cms-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }
  .cms-panel {
    padding: 20px;
  }
  .cms-heading {
    align-items: start;
  }
  .cms-panel-heading {
    flex-wrap: wrap;
  }
  .cms-fields {
    grid-template-columns: 1fr;
  }
  .cms-panel-heading .cms-field-search {
    width: 100%;
  }
  .cms-publish-bar small {
    width: 100%;
    padding-left: 17px;
  }
}
@media (max-width: 700px) {
  .cms-heading {
    flex-direction: column;
    gap: 14px;
  }
  .cms-heading h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .cms-heading .cms-secondary {
    font-size: 11px;
    padding: 10px 16px;
  }
  .cms-publish-bar {
    top: 76px;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
  }
  .cms-publish-bar small {
    display: none;
  }
  .cms-publish-bar > div {
    font-size: 10px;
  }
  .cms-publish-bar > button {
    font-size: 10px !important;
    padding: 12px 14px !important;
    min-height: 42px;
  }
  .cms-tabs {
    gap: 0;
    justify-content: space-between;
  }
  .cms-tabs button {
    padding: 10px;
    font-size: 11px;
  }
  .cms-tabs button > span {
    display: none;
  }
  .cms-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .cms-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 8px;
    gap: 6px;
  }
  .cms-sidebar > .cms-overline,
  .cms-sidebar > .cms-related {
    display: none;
  }
  .cms-sidebar > button {
    white-space: nowrap;
    flex: none;
    background: #eaeae4;
    padding: 10px 13px;
  }
  .cms-sidebar > button > span {
    display: none;
  }
  .cms-main {
    width: 100%;
  }
  .cms-panel {
    padding: 18px 15px;
    border-radius: 14px;
  }
  .cms-panel-heading h2 {
    font-size: 24px;
  }
  .cms-fields {
    gap: 20px;
  }
  .cms-field input,
  .cms-field textarea,
  .cms-panel-heading .cms-field-search {
    font-size: 16px !important;
  }
  .cms-collection-body {
    padding: 15px;
  }
  .cms-sections {
    padding: 14px;
    font-size: 11px;
  }
  .cms-collection-item > summary {
    padding: 15px;
  }
  .cms-social-preview {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .cms-social-preview > img {
    width: 100%;
    height: 170px;
  }
  .cms-publish-bar .wk-action-primary {
    white-space: nowrap;
  }
  .cms-row-tools .cms-delete {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cms-loader {
    animation: none;
  }
}

/* Page -> component -> content. Collections share the same publishing draft. */
.cms-component-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 24px;
  border-bottom: 1px solid #dededc;
}
.cms-component-nav button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid #dededc;
  background: transparent;
  color: inherit;
  border-radius: 100px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.cms-component-nav button[aria-pressed="true"] {
  background: var(--tw-ink);
  border-color: var(--tw-ink);
  color: #f5f5f4;
}
.cms-component-nav button small {
  font-size: 9px;
  opacity: 0.65;
}
.cms-component-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 24px;
}
.cms-component-heading h3 {
  font-size: 22px;
  margin: 8px 0;
  letter-spacing: -0.5px;
}
.cms-component-heading p,
.cms-component-records p {
  color: #6b6b65;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.cms-visibility {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 0;
}
.cms-visibility input {
  accent-color: var(--tw-accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.cms-component .cms-inline-collection {
  padding: 24px 0 0;
  margin-top: 24px;
  border: 0;
  border-top: 1px solid #dededc;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.cms-component-records {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
  margin-top: 24px;
  border-top: 1px solid #dededc;
}
.cms-component-records .cms-secondary {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .cms-component-heading,
  .cms-component-records {
    flex-direction: column;
    gap: 12px;
  }
  .cms-component-nav {
    gap: 6px;
  }
  .cms-component-nav button {
    padding: 10px 12px;
    min-height: 42px;
  }
  .cms-component-records .cms-secondary {
    white-space: normal;
  }
}

/* One editing context, with consistent save and publish feedback. */
.cms-save-area {
  margin-bottom: 24px;
}
.cms-save-area .cms-publish-bar {
  position: static;
  margin-bottom: 8px;
}
.cms-publish-bar .cms-save-status {
  margin-right: auto;
  flex: 1 1 240px;
}
.cms-save-status > div {
  display: grid;
  gap: 4px;
}
.cms-save-status small {
  display: block;
  font-size: 12px;
}
.cms-context-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dededc;
  border-radius: 18px;
  margin-bottom: 20px;
}
.cms-page-select {
  display: grid;
  gap: 6px;
  font-size: 12px;
  min-width: 200px;
}
.cms-page-select select {
  width: 100%;
}
.cms-context-info {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.cms-context-info small {
  color: #616161;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cms-content-editor .cms-sidebar {
  align-self: start;
  position: static;
}
.cms-content-editor .cms-sidebar > button {
  align-items: center;
  white-space: normal;
  text-align: left;
  border-radius: 10px !important;
}
.cms-content-editor .cms-sidebar > button > span {
  display: block;
}
.cms-content-editor .cms-sidebar > button[aria-pressed="true"] {
  background: #171717;
  color: #fff;
}
.cms-content-editor .cms-sidebar > button small {
  color: inherit;
}
.cms-scope-note {
  padding: 14px 16px;
  margin-bottom: 24px;
  background: #f4f4f1;
  border-radius: 12px;
  font-size: 13px;
  color: #4f4f49;
  line-height: 1.6;
}
.cms-field-source {
  display: block;
  color: #685646;
  margin-top: 8px;
  font-size: 12px;
}
.cms-block-content .cb-inspector {
  padding: 0;
  border: 0;
}
.cms-block-content .cb-inspector-head {
  margin-bottom: 22px;
}
.cms-block-content .cb-field {
  margin-bottom: 20px;
}
.cms-block-content .cb-override {
  border-bottom: 1px solid #e5e5e1;
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.cms-block-content .cb-collection {
  margin-block: 20px;
}
.cms-field > label {
  display: grid;
  gap: 8px;
}
.cms-field > label > span {
  color: #4e4e49;
  font-size: 13px;
}
.cms-field > .cms-secondary {
  justify-self: start;
}
.cms-inline-collection {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dededc;
}
.cms-inline-collection > h3 {
  margin-bottom: 18px;
}
.cms-review-dialog {
  color-scheme: light;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  color: #171717;
  border: 1px solid #dededc;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
}
.cms-review-dialog::backdrop {
  background: #0008;
  backdrop-filter: blur(4px);
}
.cms-review-dialog h2 {
  font:
    500 32px/1.15 "Clash Display",
    sans-serif;
  margin-block: 16px;
}
.cms-review-dialog p {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}
.cms-review-dialog ul {
  margin: 20px 0;
  padding-left: 22px;
}
.cms-review-dialog li {
  padding-block: 3px;
}
.cms-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
  margin-top: 28px;
}
.cms-review-actions .wk-action-primary {
  padding: 12px 20px;
}
.cms-records-editor .cms-publish-bar {
  margin-block: 24px;
  position: static;
}
.cms-records-editor .cms-sidebar {
  position: static;
  align-self: start;
}
@media (max-width: 700px) {
  .cms-context-bar {
    padding: 18px;
    gap: 16px;
  }
  .cms-page-select {
    width: 100%;
  }
  .cms-context-info {
    flex-basis: 100%;
  }
  .cms-publish-bar {
    flex-wrap: wrap;
  }
  .cms-publish-bar .cms-save-status {
    flex-basis: 100%;
  }
  .cms-save-status small {
    display: block;
    white-space: normal;
  }
  .cms-content-editor .cms-sidebar {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .cms-content-editor .cms-sidebar > button {
    flex-shrink: 0;
    max-width: 200px;
  }
  .cms-review-actions > button {
    flex: 1;
  }
}

.cms-mobile-component {
  display: none;
}
.cms-record-publish-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f5f2;
  color: #4f4f49;
  font-size: 13px;
  line-height: 1.6;
}
.cms-content-editor .cms-page-select select,
.cms-content-editor .cms-mobile-component select {
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #c8c8c4;
  border-radius: 10px;
  background: white;
  color: #222;
}
.cms-save-status small {
  color: #575750;
}
@media (max-width: 700px) {
  .cms-content-editor .cms-heading {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }
  .cms-content-editor .cms-heading h1 {
    font-size: 32px;
    margin-block: 8px;
  }
  .cms-content-editor .cms-heading p {
    font-size: 13px;
  }
  .cms-content-editor .cms-context-info {
    display: none;
  }
  .cms-content-editor .cms-context-bar {
    padding: 16px;
  }
  .cms-content-editor .cms-sidebar {
    display: none;
  }
  .cms-mobile-component {
    display: grid;
    gap: 8px;
    font-size: 13px;
    margin: 0 0 18px;
  }
  .cms-content-editor .cms-layout {
    gap: 0;
  }
  .cms-save-status small {
    display: block;
  }
}
