/* Round 4: Outreach Scorecard + Contact page tweaks. Linked only from outreach-scorecard.html and contact.html.
   Builds on the Budget Builder look (.budget-main grid, dark .budget-summary panel) from styles.css. */

/* ============ Outreach Scorecard ============ */
.sc-main { grid-template-columns: 1fr 380px; }
.sc-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--mist); counter-reset: sc; }
.sc-row { padding: 22px 24px 18px; border-bottom: 1px solid var(--mist); counter-increment: sc; }
.sc-row:last-child { border-bottom: 0; }
.sc-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.55rem; line-height: 1; letter-spacing: .01em; }
.sc-name::before { content: counter(sc); color: var(--copper-deep); margin-right: 10px; font-variant-numeric: tabular-nums; }
.sc-q { font-size: .92rem; color: var(--fg-2); }
.sc-pts { margin-left: auto; min-width: 3.2em; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; padding: 6px 8px 5px; border-radius: var(--radius); background: var(--white); color: var(--fg-2); border: 1px solid var(--mist); font-variant-numeric: tabular-nums; }
.sc-pts.is-up { background: var(--navy); color: #fff; border-color: var(--navy); }
.sc-pts.is-down { background: #F6E9E1; color: #8A3F1E; border-color: #E8CDBE; }

/* The slider: native range, restyled. Three dots mark the stops. */
.sc-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 44px; height: 44px;
  margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; --fill: 50%;
  /* keep the thumb centre on each stop label: inset matches half the thumb */
}
.sc-range:focus { outline: none; }
.sc-range:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 2px; }
.sc-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--radius);
  background:
    radial-gradient(circle, #8A94A6 0 4px, transparent 4.5px) 9px 50% / 12px 12px no-repeat,
    radial-gradient(circle, #8A94A6 0 4px, transparent 4.5px) 50% 50% / 12px 12px no-repeat,
    radial-gradient(circle, #8A94A6 0 4px, transparent 4.5px) calc(100% - 9px) 50% / 12px 12px no-repeat,
    linear-gradient(90deg, var(--copper) 0 var(--fill), #D3D9E0 var(--fill) 100%);
}
.sc-range::-moz-range-track { height: 6px; border-radius: var(--radius); background: #D3D9E0; }
.sc-range::-moz-range-progress { height: 6px; background: var(--copper); }
.sc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -12px;
  border-radius: var(--radius); background: var(--navy); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--navy), 0 2px 6px rgba(0, 0, 0, .25); transition: transform .15s;
}
.sc-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: var(--radius); background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy), 0 2px 6px rgba(0, 0, 0, .25); }
.sc-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.sc-range:focus-visible::-webkit-slider-thumb { background: var(--copper-deep); }

.sc-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.sc-stop {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .95rem; line-height: 1.3; color: var(--fg-2); text-align: center; align-items: center;
}
.sc-stop:first-child { text-align: left; align-items: flex-start; }
.sc-stop:last-child { text-align: right; align-items: flex-end; }
.sc-stop-l { font-weight: 600; }
.sc-stop-d { font-size: .8rem; }
.sc-stop-p { font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--slate); }
.sc-stop:hover .sc-stop-l { text-decoration: underline; text-underline-offset: .2em; }
.sc-stop.is-on { color: var(--fg); }
.sc-stop.is-on .sc-stop-p { color: var(--copper-deep); }

/* Summary panel: reuses .budget-summary (dark, sticky). */
.sc-total { margin-bottom: 8px; }
.sc-verdict { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0 0 22px; color: #F3EFE8; }
.sc-summary[data-band="net-breaking"] .sc-verdict { color: var(--copper-light); }
.sc-summary[data-band="net-breaking"] .sc-total { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sc-meter { position: relative; margin: 0 0 28px; padding-top: 6px; }
.sc-bands { display: flex; height: 8px; gap: 2px; }
.sc-band { display: block; height: 100%; background: rgba(220, 225, 230, .16); transition: background .25s; }
.sc-summary[data-band="very-hard"] [data-band="very-hard"],
.sc-summary[data-band="hard"] [data-band="hard"],
.sc-summary[data-band="average"] [data-band="average"],
.sc-summary[data-band="easy"] [data-band="easy"] { background: #C9D0D8; }
.sc-summary[data-band="net-breaking"] [data-band="net-breaking"] { background: var(--metal); }
.sc-marker { position: absolute; top: 0; width: 3px; height: 20px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px var(--bg); transition: left .25s; }
.sc-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; font-weight: 600; color: #8F99A8; font-variant-numeric: tabular-nums; }
.sc-scale span:nth-child(2) { position: absolute; left: 42.857%; transform: translateX(-50%); bottom: 0; } /* 0 sits 15/35 along */
.sc-scale { position: relative; }
.sc-summary .btn { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { .sc-marker, .sc-band, .sc-range::-webkit-slider-thumb { transition: none; } }

@media (max-width: 860px) {
  .sc-main { grid-template-columns: 1fr; gap: 24px; }
  .sc-row { padding: 18px 16px 14px; }
  .sc-stop { font-size: .88rem; }
  /* Phone: sticky bar shows score + verdict; meter and scale hidden to keep the bar short */
  .sc-summary { row-gap: 0; }
  .sc-summary .sc-total { flex: 0 0 auto; font-size: 2.6rem; }
  .sc-summary .sc-verdict { flex: 1 1 0; min-width: 0; margin: 0; font-size: 1.1rem; }
  .sc-summary .sc-meter { width: 100%; margin: 10px 0 8px; padding-top: 0; }
  .sc-summary .sc-marker { top: -6px; }
  .sc-summary .sc-scale { display: none; }
  .sc-summary .btn { flex: 1 1 auto; margin: 0; min-height: 44px; }
  .sc-summary .btn-text { margin: 0; min-height: 44px; }
}

@media print { .sc-summary .btn, .sc-summary .btn-text { display: none !important; } }

/* ============ Contact page: Instagram reads as a real link ============ */
.social--big a.social-ig {
  color: #fff; background: var(--copper-deep); border-color: var(--copper-deep); padding: 0 20px;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .55); text-underline-offset: .22em;
  box-shadow: inset 0 1px 0 rgba(255, 226, 200, .28), inset 0 -1px 0 rgba(0, 0, 0, .18);
  transition: background .2s, transform .2s;
}
.social--big a.social-ig:hover { background: #87502F; border-color: #87502F; color: #fff; text-decoration-color: #fff; }
.social--big a.social-ig:active { transform: translateY(1px); }
.social-ig svg { width: 20px; height: 20px; flex: none; }
.social-ig .social-arrow { font-weight: 700; }
