.complementary-card {
  max-width: 1160px;
}

.site-menu {
  text-align: left;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 17px;
  width: 24px;
  height: 3px;
}

.menu-toggle span:not(.sr-only):nth-child(1) {
  top: 18px;
}

.menu-toggle span:not(.sr-only):nth-child(2) {
  top: 28px;
}

.menu-toggle span:not(.sr-only):nth-child(3) {
  top: 38px;
}

.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(1),
.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  top: 28px;
}

.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  transform: rotate(-45deg);
}

.split-summary {
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

.summary-link {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  text-align: left;
}

.summary-toggle-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 34px;
  margin: -8px -8px -8px auto;
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.submenu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0 2px;
  padding: 8px 14px 6px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.submenu-group summary {
  list-style: none;
  cursor: pointer;
}

.submenu-group summary::-webkit-details-marker {
  display: none;
}

.submenu-nested {
  padding: 2px 0 6px 8px;
}

.site-breadcrumbs ol {
  list-style: none;
}

.complementary-summary-panel strong {
  font-size: clamp(34px, 6vw, 66px);
  letter-spacing: 0;
}

.complementary-workspace {
  display: grid;
  gap: 22px;
}

.colour-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.complementary-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.colour-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.colour-panel-head .mini-button {
  min-height: 40px;
  width: auto;
}

.colour-preview-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-height: 118px;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.24), 0 18px 42px rgba(0, 0, 0, 0.14);
}

.colour-preview-bar span {
  color: currentColor;
  opacity: 0.78;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.colour-preview-bar strong {
  color: currentColor;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.inline-picker {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: rgba(7, 8, 10, 0.32);
}

.sv-area {
  position: relative;
  min-height: 230px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, hsl(var(--picker-hue, 0), 100%, 50%));
}

.sv-thumb {
  position: absolute;
  left: calc(var(--picker-saturation, 100) * 1%);
  top: calc((100 - var(--picker-value, 100)) * 1%);
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7), 0 6px 16px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hue-control {
  display: grid;
  gap: 8px;
  color: #c5ced8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hue-control input {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  appearance: none;
}

.hue-control input::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.hue-control input::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -3px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.28);
}

.hue-control input::-moz-range-track {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}

.hue-control input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.28);
}

.colour-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-colour-card {
  padding: 14px;
}

.colour-text-input {
  min-height: 50px;
  font-size: clamp(17px, 2.3vw, 24px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rgb-output {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #b6bec8;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.colour-text-input.is-invalid,
.channel-grid input.is-invalid {
  border-color: rgba(255, 107, 87, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 107, 87, 0.16);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-grid label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #c5ced8;
  font-weight: 800;
}

.channel-grid input {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(6, 7, 9, 0.72);
  color: var(--accent-2);
  font: inherit;
  padding: 0 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.channel-grid input:focus {
  color: #fff2cf;
}

@media (max-width: 860px) {
  .colour-duo-grid,
  .colour-field-grid {
    grid-template-columns: 1fr;
  }

  .sv-area {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .colour-panel-head,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .colour-panel-head .mini-button {
    width: 100%;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }
}
