/* v391 — Final homepage micro-hierarchy fixes
   Scope: visual hierarchy only; no structure, header, routes, authority model, protected logic, or access controls changed. */

body.v391-final-micro-hierarchy .v388-homepage{
  padding-top: clamp(24px, 2.4vw, 46px);
}

/* Section 01: separate surface scope from canonical authority boundary */
body.v391-final-micro-hierarchy .v391-scope-footer{
  margin-top: clamp(20px, 2.4vw, 34px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid rgba(8,42,67,.16);
  position: relative;
}
body.v391-final-micro-hierarchy .v391-scope-footer::before{
  content: 'Surface scope';
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(22,129,80,.10);
  color: #168150;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
body.v391-final-micro-hierarchy .v391-scope-footer .v388-card{
  background: rgba(255,253,246,.72);
  box-shadow: none;
}
body.v391-final-micro-hierarchy .v391-scope-footer h3{
  color: rgba(8,42,67,.62);
}
body.v391-final-micro-hierarchy .v391-scope-footer p{
  font-size: 16px;
  line-height: 1.48;
  font-weight: 760;
}

/* Section 02: reviewer route becomes the visual spine of the homepage */
body.v391-final-micro-hierarchy #canonical-reviewer-route{
  margin-top: clamp(38px, 4.2vw, 72px);
  margin-bottom: clamp(44px, 5vw, 84px);
}
body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container{
  position: relative;
}
body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::before,
body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8,42,67,.28), transparent);
  pointer-events: none;
}
body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::before{ top: -22px; }
body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::after{ bottom: -24px; }
body.v391-final-micro-hierarchy .v390-route-dominant::before{
  inset: -16px 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, #e3bd6f 0%, rgba(22,129,80,.92) 44%, #082a43 100%);
  box-shadow: 0 12px 28px rgba(8,42,67,.12);
}
body.v391-final-micro-hierarchy .v390-route-dominant .v388-section-label{
  margin-bottom: 22px;
}
body.v391-final-micro-hierarchy .v390-route-dominant .v388-route-head{
  padding: clamp(28px, 3.4vw, 48px);
}
body.v391-final-micro-hierarchy .v390-route-dominant .v388-route-card{
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(8,42,67,.18);
  box-shadow: 0 34px 90px rgba(8,42,67,.16);
}
body.v391-final-micro-hierarchy .v390-route-dominant .v388-route-card a{
  border-color: rgba(8,42,67,.16);
}

/* Section 05: examples collapse for scanability */
body.v391-final-micro-hierarchy .v391-examples-card{
  padding: 0;
  overflow: hidden;
}
body.v391-final-micro-hierarchy .v391-examples-card details{
  padding: 22px;
}
body.v391-final-micro-hierarchy .v391-examples-card summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #082a43;
  font-weight: 900;
  font-size: 20px;
}
body.v391-final-micro-hierarchy .v391-examples-card summary::-webkit-details-marker{ display: none; }
body.v391-final-micro-hierarchy .v391-examples-card summary::after{
  content: 'View examples';
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e3bd6f;
  color: #082a43;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.v391-final-micro-hierarchy .v391-examples-card details[open] summary::after{
  content: 'Hide examples';
}
body.v391-final-micro-hierarchy .v391-examples-card ul{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(8,42,67,.12);
}
body.v391-final-micro-hierarchy .v391-examples-card .v391-examples-note{
  margin: 10px 0 0;
  color: rgba(8,42,67,.64);
  font-size: 14px;
  line-height: 1.45;
}

@media(max-width: 680px){
  body.v391-final-micro-hierarchy #canonical-reviewer-route{
    margin-top: 34px;
    margin-bottom: 44px;
  }
  body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::before{ top: -16px; }
  body.v391-final-micro-hierarchy #canonical-reviewer-route .v388-container::after{ bottom: -18px; }
  body.v391-final-micro-hierarchy .v391-examples-card summary{
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
