/* SSC Blog Header. Every rule is scoped to #ssc-header so it beats the theme's button and link styles. */

/* Hide the old header */
header.ssc-hero,
#masthead,
nav.ssc-primary-nav {
  display: none !important;
}

html {
  scroll-padding-top: 76px;
}

/* Lock the body, not html. The theme sets overflow on body, and hiding overflow on html makes body its own scroller, which breaks sticky. */
html.ssch-locked body {
  overflow: hidden !important;
}

/* Base */
#ssc-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

#ssc-header[data-hidden="true"] {
  transform: translateY(-100%);
}

.admin-bar #ssc-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #ssc-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar #ssc-header {
    top: 0;
  }
}

#ssc-header,
#ssc-header * {
  box-sizing: border-box;
}

#ssc-header [hidden] {
  display: none !important;
}

#ssc-header a,
#ssc-header a:hover,
#ssc-header a:focus,
#ssc-header a:visited {
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

#ssc-header button,
#ssc-header button:hover,
#ssc-header button:focus,
#ssc-header button:active {
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#ssc-header p,
#ssc-header form {
  margin: 0;
}

#ssc-header svg {
  display: block;
  flex: none;
}

#ssc-header :focus-visible {
  outline: 3px solid #926d23;
  outline-offset: 2px;
}

#ssc-header .ssch-bar :focus-visible {
  outline-color: #e4d6a9;
}

/* Skip link */
#ssc-header .ssch-skip {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: #1d1948;
  font-weight: 700;
}

#ssc-header .ssch-skip:focus {
  top: 8px;
}

/* Dim layer behind an open menu */
#ssc-header .ssch-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 12, 46, .45);
  pointer-events: none;
  animation: ssch-fade .2s ease both;
}

/* Bar */
#ssc-header .ssch-bar {
  position: relative;
  z-index: 2;
  background: #1d1948;
  transition: box-shadow .2s ease;
}

#ssc-header[data-scrolled="true"] .ssch-bar {
  box-shadow: 0 8px 24px rgba(5, 3, 30, .35);
}

#ssc-header .ssch-row {
  max-width: 1240px;
  height: 60px;
  margin: 0 auto;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height .2s ease;
}

#ssc-header .ssch-logo {
  flex: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#ssc-header .ssch-logo span {
  color: #a5b4fc;
}

/* Main links */
#ssc-header .ssch-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

#ssc-header .ssch-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #e0e7ff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}

#ssc-header .ssch-link:hover,
#ssc-header .ssch-link:focus,
#ssc-header .ssch-link[aria-expanded="true"],
#ssc-header .ssch-link[data-current="true"] {
  color: #fff;
}

#ssc-header .ssch-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 1px;
  background: #e4d6a9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

#ssc-header .ssch-link:hover::after,
#ssc-header .ssch-link[aria-expanded="true"]::after,
#ssc-header .ssch-link[data-current="true"]::after {
  transform: scaleX(1);
}

#ssc-header .ssch-chev {
  transition: transform .2s ease;
}

#ssc-header [aria-expanded="true"] > .ssch-chev {
  transform: rotate(180deg);
}

/* Right side */
#ssc-header .ssch-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

#ssc-header .ssch-icon-btn {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
}

#ssc-header .ssch-search-btn {
  display: none;
  color: #e0e7ff;
}

#ssc-header .ssch-burger {
  display: inline-flex;
}

#ssc-header .ssch-i-close,
#ssc-header .ssch-burger[aria-expanded="true"] .ssch-i-menu {
  display: none;
}

#ssc-header .ssch-burger[aria-expanded="true"] .ssch-i-close {
  display: block;
}

#ssc-header .ssch-cta,
#ssc-header .ssch-cta:hover,
#ssc-header .ssch-cta:focus,
#ssc-header .ssch-cta:visited {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 9px;
  background: #e4d6a9;
  color: #252043;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}

#ssc-header .ssch-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(5, 3, 30, .35);
}

#ssc-header .ssch-cta:active {
  transform: scale(.98);
}

#ssc-header .ssch-arrow {
  display: inline-block;
  transition: transform .18s ease;
}

#ssc-header .ssch-long {
  display: none;
}

#ssc-header .ssch-cta:hover .ssch-arrow,
#ssc-header .ssch-feature:hover .ssch-arrow {
  transform: translateX(4px);
}

/* No-JavaScript fallback */
#ssc-header .ssch-noscript {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0 16px 10px;
  font-size: 15px;
  font-weight: 600;
}

/* Desktop menus */
#ssc-header .ssch-panel-wrap {
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0 16px;
  pointer-events: none;
}

#ssc-header .ssch-panel {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(5, 3, 30, .3);
  color: #334155;
  pointer-events: auto;
  animation: ssch-panel .22s cubic-bezier(.2, .8, .2, 1) both;
}

#ssc-header .ssch-panel-small {
  max-width: 720px;
  padding: 18px;
}

#ssc-header .ssch-panel-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

#ssc-header .ssch-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#ssc-header .ssch-label {
  margin: 0 0 4px 12px;
  color: #926d23;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .72px;
  text-transform: uppercase;
}

#ssc-header .ssch-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

#ssc-header .ssch-tile {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: #334155;
  transition: background-color .15s ease, transform .15s ease;
}

#ssc-header .ssch-tile:hover {
  background-color: #f4f1fc;
  transform: translateY(-2px);
}

#ssc-header .ssch-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 800;
}

#ssc-header .ssch-violet { background: #eeeafb; color: #4d3ec2; }
#ssc-header .ssch-teal { background: #e3f4f1; color: #0f766e; }
#ssc-header .ssch-gold { background: #fcf1d9; color: #7a4e00; }
#ssc-header .ssch-blue { background: #e6eefb; color: #1d4ed8; }

#ssc-header .ssch-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#ssc-header .ssch-title {
  color: #20213e;
  font-size: 16px;
  font-weight: 700;
}

#ssc-header .ssch-line {
  font-size: 14px;
  line-height: 1.35;
}

#ssc-header .ssch-more {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 8px 12px 0;
}

#ssc-header .ssch-more a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4d3ec2;
  font-size: 14px;
  font-weight: 700;
}

#ssc-header .ssch-row-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  color: #20213e;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .15s ease;
}

#ssc-header .ssch-row-link:hover {
  background-color: #f4f1fc;
}

#ssc-header .ssch-feature {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

#ssc-header .ssch-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(32, 33, 62, .22);
}

#ssc-header .ssch-feature-teal { background: #0f6b64; }
#ssc-header .ssch-feature-ink { background: #1d1948; }

#ssc-header .ssch-feature-label {
  color: #fcd9a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .72px;
  text-transform: uppercase;
}

#ssc-header .ssch-feature-ink .ssch-feature-label {
  color: #e4d6a9;
}

#ssc-header .ssch-feature-title {
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}

#ssc-header .ssch-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#ssc-header .ssch-feature-go {
  margin-top: auto;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Search */
#ssc-header .ssch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#ssc-header .ssch-search {
  display: flex;
  gap: 8px;
}

#ssc-header input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid #d8d3ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #20213e;
  font: inherit;
  font-size: 16px;
}

#ssc-header input[type="search"]:focus {
  border-color: #4d3ec2;
  outline: 0;
}

#ssc-header .ssch-search-go,
#ssc-header .ssch-search-go:hover,
#ssc-header .ssch-search-go:focus {
  flex: none;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: #4d3ec2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

/* Phone menu */
#ssc-header .ssch-sheet {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fdfbf7;
  color: #334155;
  animation: ssch-sheet .26s cubic-bezier(.2, .8, .2, 1) both;
}

#ssc-header .ssch-sheet-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#ssc-header .ssch-sheet .ssch-label {
  margin-left: 0;
  margin-bottom: 0;
}

#ssc-header .ssch-sheet-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#ssc-header .ssch-sheet-tile {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #20213e;
  font-size: 16px;
  font-weight: 700;
}

#ssc-header .ssch-sheet-tile .ssch-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

#ssc-header .ssch-sheet-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #20213e;
  font-size: 16px;
  font-weight: 600;
}

#ssc-header .ssch-sheet-row + .ssch-sheet-row {
  border-top: 1px solid #e2e8f0;
}

#ssc-header .ssch-sheet-row span {
  color: #4d3ec2;
}

#ssc-header .ssch-sheet-play {
  padding: 14px 16px 6px;
  border-radius: 14px;
  background: #1d1948;
}

#ssc-header .ssch-sheet-play .ssch-label {
  color: #e4d6a9;
}

#ssc-header .ssch-sheet-play .ssch-sheet-row {
  color: #fff;
}

#ssc-header .ssch-sheet-play .ssch-sheet-row + .ssch-sheet-row {
  border-top-color: rgba(199, 210, 254, .25);
}

#ssc-header .ssch-sheet-play .ssch-sheet-row span {
  color: #e4d6a9;
}

/* Desktop layout */
@media (min-width: 960px) {
  #ssc-header .ssch-row {
    height: 72px;
    padding: 0 16px;
  }

  #ssc-header[data-scrolled="true"] .ssch-row {
    height: 60px;
  }

  #ssc-header .ssch-nav,
  #ssc-header .ssch-search-btn {
    display: flex;
  }

  #ssc-header .ssch-panel-wrap {
    display: block;
  }

  #ssc-header .ssch-burger,
  #ssc-header .ssch-sheet,
  #ssc-header .ssch-short {
    display: none !important;
  }

  #ssc-header .ssch-long {
    display: inline-block;
  }
}

@keyframes ssch-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ssch-panel {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes ssch-sheet {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #ssc-header,
  #ssc-header * {
    animation: none !important;
    transition: none !important;
  }
}
