/* CMS shell: navigation, workspace and dashboard. Domain editors keep site.css. */
.cms-shell {
  margin: 0;
  background: var(--cms-canvas, #f3f6f8);
  color: var(--cms-ink, #183344);
}
.cms-shell,
.cms-shell * {
  box-sizing: border-box;
}
.cms-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 16rem;
  background: #fff;
  border-right: 1px solid var(--cms-border, #dbe4e9);
}
.cms-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 1.3rem 1.25rem;
}
.cms-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cms-ink, #183344);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.cms-sidebar-brand img {
  display: block;
  max-width: 100%;
}
.cms-sidebar-brand span {
  padding-left: 0.65rem;
  border-left: 1px solid var(--cms-border, #dbe4e9);
}
.cms-sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 0 0.8rem 1.2rem;
  overflow-y: auto;
}
.cms-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  margin: 0.1rem 0;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--cms-ink, #183344);
  font-size: 0.91rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cms-sidebar-link:hover {
  color: var(--cms-accent, #166c86);
  background: #f0f5f7;
}
.cms-sidebar-link.is-active {
  color: #0e566d;
  background: #e6f2f5;
  font-weight: 650;
  box-shadow: inset 3px 0 var(--cms-accent, #166c86);
}
.cms-sidebar-symbol {
  font-size: 1.2rem;
}
.cms-sidebar-group {
  margin-top: 1.2rem;
}
.cms-sidebar-label {
  margin: 0 0 0.5rem;
  padding-inline: 0.85rem;
  color: var(--cms-muted, #637584);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cms-sidebar-section {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #edf1f4;
}
.cms-sidebar-section > summary {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--cms-muted, #637584);
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.cms-sidebar-section > summary::-webkit-details-marker {
  display: none;
}
.cms-sidebar-section > summary::after {
  content: "+";
}
.cms-sidebar-section[open] > summary::after {
  content: "−";
}
.cms-sidebar-note {
  padding: 1rem 1.65rem;
  border-top: 1px solid var(--cms-border, #dbe4e9);
  color: var(--cms-muted, #637584);
  font-size: 0.75rem;
  line-height: 1.6;
}
.cms-sidebar-note span {
  font-size: 0.7rem;
}
.cms-workspace {
  width: calc(100% - 16rem);
  min-width: 0;
  margin-left: 16rem;
}
.cms-topbar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--cms-border, #dbe4e9);
  background: #fff;
}
.cms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--cms-muted, #637584);
}
.cms-breadcrumb a {
  color: var(--cms-muted, #637584);
  text-decoration: none;
}
.cms-topbar-title {
  color: var(--cms-ink, #183344);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.cms-topbar-actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-width: 0;
}
.cms-global-search {
  display: flex;
  flex: 1 1 11rem;
  max-width: 19rem;
  min-width: 0;
  border: 1px solid var(--cms-border, #dbe4e9);
  border-radius: 0.5rem;
  background: #f7f9fa;
}
.cms-global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--cms-ink, #183344);
  background: transparent;
}
.cms-global-search button {
  flex-shrink: 0;
  width: 2.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--cms-accent, #166c86);
  font-size: 1.3rem;
}
.cms-website-link {
  color: var(--cms-accent, #166c86);
  font-size: 0.83rem;
  text-decoration: none;
  white-space: nowrap;
}
.cms-account {
  position: relative;
  max-width: 13rem;
}
.cms-account > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cms-ink, #183344);
  font-size: 0.83rem;
  cursor: pointer;
  list-style: none;
}
.cms-account > summary::-webkit-details-marker {
  display: none;
}
.cms-account-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cms-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 1rem);
  z-index: 50;
  min-width: 10rem;
  padding: 0.35rem;
  border: 1px solid var(--cms-border, #dbe4e9);
  border-radius: 0.6rem;
  box-shadow: 0 0.6rem 1.5rem rgb(24 51 68 / 10%);
  background: #fff;
}
.cms-account-menu a,
.cms-account-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--cms-ink, #183344);
  text-align: left;
  text-decoration: none;
  font: inherit;
}
.cms-account-menu a:hover,
.cms-account-menu button:hover {
  background: #f0f5f7;
}
.cms-main {
  width: 100%;
  max-width: 100rem;
  min-width: 0;
  margin-inline: auto;
  padding: 2rem;
}
.cms-main > * {
  min-width: 0;
}
.cms-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--cms-border, #dbe4e9);
  color: var(--cms-muted, #637584);
  font-size: 0.73rem;
}
.cms-menu-toggle,
.cms-sidebar-close,
.cms-sidebar-backdrop {
  display: none;
}
.cms-auth-header {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: #fff;
  border-bottom: 1px solid var(--cms-border, #dbe4e9);
}
.cms-auth-workspace {
  padding-top: 2rem;
}
.cms-sidebar :is(a, button, summary):focus-visible,
.cms-topbar :is(a, button, summary, input):focus-visible,
.cms-dashboard :is(a, button):focus-visible {
  outline: 3px solid #258ca9;
  outline-offset: 3px;
}
.cms-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.cms-dashboard-eyebrow {
  margin-bottom: 0.5rem;
  color: var(--cms-accent, #166c86);
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cms-dashboard-header h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}
.cms-dashboard-header p {
  color: var(--cms-muted, #637584);
}
.cms-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.cms-dashboard-stat {
  display: block;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--cms-border, #dbe4e9);
  border-radius: var(--cms-radius, 0.85rem);
  color: var(--cms-ink, #183344);
  background: #fff;
  text-decoration: none;
}
.cms-dashboard-stat:hover {
  border-color: #80adbd;
  color: var(--cms-ink, #183344);
}
.cms-dashboard-stat-label {
  font-size: 0.83rem;
  color: var(--cms-muted, #637584);
}
.cms-dashboard-stat-count {
  display: block;
  margin: 0.3rem 0;
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.2;
}
.cms-dashboard-stat small {
  color: var(--cms-muted, #637584);
}
.cms-dashboard-section {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}
.cms-dashboard-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}
.cms-dashboard-section-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.cms-dashboard-section-heading p {
  margin: 0;
  color: var(--cms-muted, #637584);
  font-size: 0.8rem;
}
.cms-dashboard-collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cms-dashboard-collections.editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cms-dashboard-collection {
  padding: 1.25rem;
  border: 1px solid var(--cms-border, #dbe4e9);
  border-radius: var(--cms-radius, 0.85rem);
  background: #fff;
}
.cms-dashboard-collection h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 650;
}
.cms-dashboard-collection h3 a {
  color: var(--cms-ink, #183344);
  text-decoration: none;
}
.cms-dashboard-collection p {
  color: var(--cms-muted, #637584);
  font-size: 0.8rem;
}
.cms-dashboard-collection-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}
.cms-dashboard-collection-status a {
  color: var(--cms-accent, #166c86);
}
.cms-dashboard-task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cms-dashboard-panel {
  padding: 1.25rem;
  border: 1px solid var(--cms-border, #dbe4e9);
  border-radius: var(--cms-radius, 0.85rem);
  background: #fff;
}
.cms-dashboard-panel .table {
  margin-bottom: 0;
}
.cms-dashboard-empty {
  margin: 0;
  color: var(--cms-muted, #637584);
  font-size: 0.9rem;
}
@media (max-width: 1199.98px) {
  .cms-topbar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .cms-topbar-actions {
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .cms-account {
    margin-left: auto;
  }
  .cms-dashboard-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .cms-sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--cms-border, #dbe4e9);
  }
  .cms-sidebar-nav {
    overflow-y: visible;
  }
  .cms-workspace {
    width: 100%;
    margin-left: 0;
  }
  .cms-shell-ready .cms-sidebar {
    position: fixed;
    width: min(18rem, calc(100vw - 3rem));
    border-right: 1px solid var(--cms-border, #dbe4e9);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 160ms ease;
    pointer-events: none;
  }
  .cms-shell-ready .cms-sidebar-nav {
    overflow-y: auto;
  }
  .cms-shell-ready.cms-menu-open {
    overflow: hidden;
  }
  .cms-shell-ready.cms-menu-open .cms-sidebar {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
  .cms-shell-ready .cms-menu-toggle,
  .cms-shell-ready .cms-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--cms-border, #dbe4e9);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--cms-ink, #183344);
    font-size: 1.3rem;
    cursor: pointer;
  }
  .cms-sidebar-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: block;
    background: rgb(15 35 47 / 45%);
  }
  .cms-sidebar-backdrop[hidden] {
    display: none;
  }
  .cms-topbar,
  .cms-main,
  .cms-footer {
    padding-inline: 1.25rem;
  }
}
@media (max-width: 575.98px) {
  .cms-dashboard-scheduled thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cms-dashboard-scheduled,
  .cms-dashboard-scheduled tbody {
    display: block;
  }
  .cms-dashboard-scheduled [data-scheduled-entry] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 0.6rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--cms-border, #dbe4e9);
  }
  .cms-dashboard-scheduled [data-scheduled-entry]:last-child {
    border-bottom: 0;
  }
  .cms-dashboard-scheduled td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 0.8rem;
  }
  .cms-dashboard-scheduled td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: 0.9rem;
  }
  .cms-dashboard-scheduled td:nth-child(3) a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cms-topbar {
    gap: 0.6rem;
  }
  .cms-global-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .cms-account {
    max-width: 11rem;
  }
  .cms-main {
    padding: 1.4rem 1rem;
  }
  .cms-dashboard-stats {
    gap: 0.5rem;
  }
  .cms-dashboard-stat {
    padding: 0.85rem 0.65rem;
    border-radius: 0.6rem;
  }
  .cms-dashboard-stat-label {
    font-size: 0.74rem;
  }
  .cms-dashboard-stat-count {
    font-size: 1.6rem;
  }
  .cms-dashboard-stat small {
    font-size: 0.7rem;
  }
  .cms-dashboard-collections,
  .cms-dashboard-collections.editorial {
    grid-template-columns: minmax(0, 1fr);
  }
  .cms-dashboard-panel {
    padding: 1rem;
  }
  .cms-dashboard-header .dashboard-quick-actions {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cms-shell-ready .cms-sidebar {
    transition: none;
  }
}
