/* =====================================================================
   HIGH-UP! CODE OF CONDUCT (/high-up/code-of-conduct/)
   Loaded after highup.css on that one page. The prose rides the
   site's .doc block from pages.css; this file dresses it in the
   event's skin (orange numerals, slanted uppercase heads, blade
   bullets) and adds the pieces the page alone has: the intro, the
   "short version" panel, the sticky contents rail on wide screens and
   the reporting callout. No motion here, so nothing to gate on
   prefers-reduced-motion.
   ===================================================================== */

.page-highup .hcoc {
  padding-top: clamp(28px, 5vh, 56px);
  padding-bottom: clamp(56px, 9vh, 104px);
}

/* ---- intro ---- */
.page-highup .hcoc-intro {
  max-width: 46rem;
}
.page-highup .hcoc-meta {
  color: var(--hx-sand);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.page-highup .hcoc-lede {
  margin-top: 16px;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--hx-paper);
}
.page-highup .hcoc-scope {
  margin-top: 14px;
  color: var(--txt-soft);
}
.page-highup .hcoc-scope a,
.page-highup .hcoc-doc p a,
.page-highup .hcoc-doc li a {
  color: var(--hx-paper);
  text-decoration: underline;
  text-decoration-color: var(--hx-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.page-highup .hcoc-scope a:hover,
.page-highup .hcoc-doc p a:hover,
.page-highup .hcoc-doc li a:hover {
  color: var(--hx-sand);
}

/* ---- the short version ---- */
.page-highup .hcoc-short {
  max-width: 46rem;
  margin-top: 36px;
  padding: 26px calc(22px + var(--hx-box) / 2) 24px;
  background: var(--hx-bark);
  clip-path: var(--hx-shape-box);
}
.page-highup .hcoc-short-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--hx-sand);
  transform: skewX(var(--hx-skew));
  transform-origin: left bottom;
}
.page-highup .hcoc-short ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-highup .hcoc-short li {
  position: relative;
  padding-left: 30px;
  color: var(--hx-paper);
  line-height: 1.5;
}

/* one bullet for every list on the page: the kicker's small blade */
.page-highup .hcoc-short li::before,
.page-highup .hcoc-doc ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 7px;
  background: var(--hx-orange);
  clip-path: polygon(0 50%, 100% 0, 78% 100%);
}

/* ---- layout: contents rail beside the document on wide screens ---- */
.page-highup .hcoc-layout {
  margin-top: 56px;
}
.page-highup .hcoc-toc {
  display: none;
}
@media (min-width: 1024px) {
  .page-highup .hcoc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 46rem);
    gap: 64px;
    align-items: start;
  }
  .page-highup .hcoc-toc {
    display: block;
    position: sticky;
    top: 104px;
  }
}
.page-highup .hcoc-toc-title {
  color: var(--hx-orange);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.page-highup .hcoc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(var(--hx-sand-rgb), 0.18);
}
.page-highup .hcoc-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 11px 0 11px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--txt-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 0.2s var(--hx-snap),
    border-color 0.2s var(--hx-snap);
}
.page-highup .hcoc-toc a .mono {
  font-size: 0.7rem;
  color: var(--txt-dim);
}
.page-highup .hcoc-toc a:hover,
.page-highup .hcoc-toc a:focus-visible {
  color: var(--hx-paper);
  border-left-color: var(--hx-orange);
}

/* ---- the document ---- */
.page-highup .hcoc-doc {
  padding-bottom: 0;
}
.page-highup .hcoc-doc section {
  scroll-margin-top: 96px;
}
.page-highup .hcoc-doc section + section {
  border-top-color: rgba(var(--hx-sand-rgb), 0.16);
}
.page-highup .hcoc-doc h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--hx-paper);
}
.page-highup .hcoc-doc h2 .n {
  flex: 0 0 auto;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--hx-orange);
}
.page-highup .hcoc-doc p,
.page-highup .hcoc-doc li {
  line-height: 1.65;
}
.page-highup .hcoc-doc ul {
  list-style: none;
  padding-left: 0;
}
.page-highup .hcoc-doc ul > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

/* ---- how to report ---- */
.page-highup .hcoc-report {
  position: relative;
  margin: 26px 0 22px;
  padding: 24px 22px 20px 26px;
  background: rgba(var(--hx-orange-rgb), 0.1);
}
.page-highup .hcoc-report::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--hx-orange);
}
.page-highup .hcoc-doc .hcoc-report-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--hx-sand);
}
.page-highup .hcoc-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-highup .hcoc-routes li {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--hx-paper);
}
@media (min-width: 620px) {
  .page-highup .hcoc-routes li {
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}
.page-highup .hcoc-route-name {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--hx-orange);
}
.page-highup .hcoc-doc .hcoc-emergency {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--hx-sand-rgb), 0.16);
  color: var(--txt-soft);
  font-size: 0.95rem;
}
.page-highup .hcoc-doc .hcoc-youth {
  color: var(--hx-paper);
  font-weight: 500;
}
.page-highup .hcoc-doc .hcoc-source {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--txt-dim);
}

/* ---- related links ---- */
.page-highup .hcoc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 36px;
  border-top: 1px solid rgba(var(--hx-sand-rgb), 0.16);
}
.page-highup .hcoc-links .hux-btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
@media (max-width: 619px) {
  .page-highup .hcoc-links .hux-btn {
    width: 100%;
    justify-content: center;
  }
}
