/* Code of Conduct page (code-of-conduct.php): document-reader layout — sticky chapter sidebar + reading column. */

/* style.css sets overflow-x:hidden on html+body, which turns body into a scroll container and breaks position:sticky.
   clip still prevents sideways scroll but keeps sticky working. Scoped to this page (conduct.css loads only here). */
html, body { overflow-x: clip; }

/* Hero meta row */
.cc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.cc-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); font-size: 14px; font-weight: 600; }
.cc-meta i { color: #ff8b3d; font-size: 18px; }

/* Layout */
.cc-doc { padding: 72px 0 96px; background: #fff; }
.cc-doc__grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 72px; justify-content: center; }

/* Sidebar */
.cc-side__inner { position: sticky; top: 120px; }
.cc-side__label { display: block; margin-bottom: 14px; color: #c2410c; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.cc-nav { position: relative; display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid #e8ecf5; }
.cc-nav a { display: flex; gap: 12px; padding: 9px 0; color: #4a5670; font-size: 15px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.cc-nav a b { color: #9aa3b8; font-size: 12px; font-weight: 800; padding-top: 2px; font-variant-numeric: lining-nums tabular-nums; transition: color .2s; }
.cc-nav a:hover { color: #07133f; text-decoration: none; }
.cc-nav a.is-active { color: #07133f; font-weight: 700; }
.cc-nav a.is-active b { color: #ff6600; }
.cc-progress { position: absolute; top: 0; bottom: 0; left: -2px; width: 2px; }
.cc-progress span { display: block; width: 100%; height: 100%; background: #ff6600; transform: scaleY(0); transform-origin: top; transition: transform .1s linear; }
.cc-help { margin-top: 28px; padding: 18px; border-radius: 14px; background: #f6f8fc; }
.cc-help strong { display: block; margin-bottom: 4px; color: #07133f; font-family: "Raleway", sans-serif; font-size: 15px; }
.cc-help p { margin: 0; color: #4a5670; font-size: 14px; line-height: 1.55; }

/* Reading column */
.cc-body { color: #2b3550; }
.cc-ch { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid #e8ecf5; scroll-margin-top: 110px; }
.cc-ch:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.cc-ch__no { display: block; color: #ff6600; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.cc-ch h2 { margin: 10px 0 18px; color: #07133f; font-family: "Raleway", sans-serif; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.cc-ch h3 { margin: 34px 0 10px; color: #07133f; font-family: "Raleway", sans-serif; font-size: 21px; font-weight: 700; }
.cc-ch p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.8; }
.cc-lede { color: #07133f; font-size: 19px !important; line-height: 1.65 !important; }

.cc-callout { margin: 22px 0; padding: 20px 22px 20px 24px; border-left: 4px solid #ff6600; border-radius: 0 14px 14px 0; background: #fff6ef; }
.cc-callout__tag { display: block; margin-bottom: 4px; color: #c2410c; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cc-callout p { margin: 0; color: #07133f; font-weight: 600; }

/* Numbered steps */
.cc-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: none; }
.cc-steps li { position: relative; display: flex; gap: 20px; padding: 0 0 22px; }
.cc-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: #eef1f7; }
.cc-steps__n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #07133f; color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; }
.cc-steps p { margin: 6px 0 0; }
.cc-steps--compact li { padding-bottom: 16px; }
.cc-steps--compact .cc-steps__n { width: 30px; height: 30px; background: #fff4ec; color: #c2410c; font-size: 13px; }
.cc-steps--compact li:not(:last-child)::before { left: 14px; top: 32px; }
.cc-steps--compact p { margin-top: 3px; font-size: 16px; }

/* Severity scale */
.cc-scale { position: relative; display: flex; justify-content: space-between; margin: 26px 0 18px; padding-top: 14px; }
.cc-scale__bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ffd2b0, #ff6600 55%, #07133f); }
.cc-scale__l, .cc-scale__r { color: #4a5670; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Punishment tiers */
.cc-tier { margin-top: 18px; border: 1px solid #e8ecf5; border-radius: 16px; overflow: hidden; }
.cc-tier__head { padding: 20px 24px; }
.cc-tier--minor .cc-tier__head { background: #fff6ef; }
.cc-tier--major .cc-tier__head { background: #07133f; }
.cc-tier__badge { display: inline-block; margin-bottom: 8px; color: #c2410c; font-family: "Raleway", sans-serif; font-size: 20px; font-weight: 800; }
.cc-tier--major .cc-tier__badge { color: #fff; }
.cc-tier__head p { margin: 0; font-size: 15px; }
.cc-tier--major .cc-tier__head p { color: rgba(255,255,255,.75); }
.cc-tier__cols { display: grid; grid-template-columns: 220px 1fr; }
.cc-tier__cols > div { padding: 20px 24px 22px; }
.cc-tier__cols > div:first-child { border-right: 1px solid #e8ecf5; background: #fafbfe; }
.cc-tier h4 { margin: 0 0 12px; color: #9aa3b8; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cc-pen { margin: 0; padding: 0; list-style: none; }
.cc-pen li { margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid #e8ecf5; color: #07133f; font-size: 14px; font-weight: 700; line-height: 1.4; }
.cc-tier--major .cc-pen li { border-color: rgba(255,102,0,.3); color: #c2410c; }
.cc-dots { margin: 0; padding: 0; list-style: none; }
.cc-dots li { position: relative; padding: 0 0 10px 18px; color: #2b3550; font-size: 15px; line-height: 1.65; }
.cc-dots li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #ff6600; }

@media (max-width: 991px) {
  .cc-doc { padding: 40px 0 72px; }
  .cc-doc__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cc-side__inner { position: static; }
  .cc-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding-left: 0; border-left: 0; }
  .cc-progress, .cc-help { display: none; }
}
@media (max-width: 640px) {
  .cc-tier__cols { grid-template-columns: 1fr; }
  .cc-tier__cols > div:first-child { border-right: 0; border-bottom: 1px solid #e8ecf5; }
  .cc-ch { padding-bottom: 44px; margin-bottom: 44px; }
}
