/* SUMNORGEE Vol.4 v1.9.6 — edit_candidate header-only visual patch
   Append as a SECOND stylesheet after the existing sh4-edit.css.
   No API, form, or authentication changes. */
header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(108deg,#38234e 0%,#604676 52%,#9781a9 100%);
  padding: 40px 0 44px;
  color: #fff;
}
header::after {
  content: '✿                 ✳                 ❄';
  position: absolute;
  z-index: -1;
  left: 11%;
  right: 5%;
  bottom: -24px;
  color: rgba(255,255,255,.15);
  font-size: clamp(3rem,7vw,7rem);
  letter-spacing: clamp(1rem,4vw,5rem);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
header > .container {
  width: min(1140px,calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 22px;
}
header > .container > p {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 16px;
  font-size: .78rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .045em;
  color: #f2eaf7;
}
header > .container > h1 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: clamp(1.65rem,3.7vw,2.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.045em;
}
header > .container > nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  display: inline-flex;
  align-self: start;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}
header > .container > nav > button {
  border: 0;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: #fff;
  white-space: nowrap;
  font-size: .87rem;
  font-weight: 650;
}
header > .container > nav > button[aria-pressed="true"] {
  background: #fff;
  color: #422b62;
}
header > .container > nav > button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media(max-width:680px) {
  header {padding: 25px 0 30px;}
  header > .container {width:calc(100% - 28px);grid-template-columns:1fr;row-gap:14px;}
  header > .container > p {grid-row:1;margin:0;}
  header > .container > h1 {grid-row:2;}
  header > .container > nav {grid-column:1;grid-row:3;justify-self:start;}
  header::after {left:20%;bottom:0;font-size:3.4rem;letter-spacing:1rem;}
}
