/**
 * School of Excellence: the program page and the family survey.
 * Site tokens throughout (a Cox blue page, a Henry gold page); the only
 * fixed colors are National PTA's own mark.
 */

.rt-ex { --rt-ex-radius: var(--rt-radius, 12px); --rt-soe-blue: #004078; --rt-soe-gold: #e8b808; text-align: left; }
.rt-ex-logo { display: block; max-width: min(420px, 100%); height: auto; margin: 0 auto; }

/* ---- Program page ---------------------------------------------------- */

/* The program page sits on the same warm ground as the survey, the ribbon
   faint in the corner, so the cards and panels have something to sit on. */
.rt-ex-page { position: relative; padding: clamp(14px, 2.5vw, 28px); border-radius: calc(var(--rt-ex-radius) + 8px); background: #f8f4e7; overflow: clip; }
.rt-ex-page::before { content: ""; position: absolute; right: -40px; top: 40px; width: 360px; height: 460px; background: url("../img/soe-ribbon.png") no-repeat center / contain; opacity: .07; pointer-events: none; }
.rt-ex-page > * { position: relative; }
/* The hero is a School of Excellence navy band with the gold sash, the mark on a white plate. */
.rt-ex-hero {
  position: relative; text-align: center; margin: 0 0 22px; padding: clamp(24px, 3.5vw, 40px) clamp(18px, 3vw, 34px);
  border-radius: calc(var(--rt-ex-radius) + 6px); overflow: hidden; color: #fff; background-color: var(--rt-soe-blue);
  background-image: linear-gradient(112deg, transparent 0 58%, rgba(232, 184, 8, 0.22) 58% 63%, transparent 63% 67%, rgba(232, 184, 8, 0.55) 67% 74%, transparent 74%);
  border-top: 8px solid var(--rt-soe-gold); box-shadow: var(--rt-shadow-lift, 0 10px 28px rgba(0,0,0,.18));
}
.rt-ex-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/soe-ribbon.png") no-repeat right -120px top -60px / 520px auto; opacity: .08; pointer-events: none; }
.rt-ex-hero > * { position: relative; }
.rt-ex-hero .rt-ex-band-plate { display: inline-block; max-width: min(460px, 100%); margin: 0 auto; }
.rt-ex-hero h2 { margin: 22px 0 10px; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
.rt-ex-lead { max-width: 62ch; margin: 0 auto; font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; opacity: .95; }

/* The shelf of designations: one ribbon per program span, the one in
   progress lit and gently breathing. */
.rt-ex-shelf { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.rt-ex-ribbon {
  position: relative; display: grid; justify-items: center; gap: 2px;
  min-width: 150px; padding: 18px 20px 16px;
  background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0);
  border-radius: var(--rt-ex-radius); box-shadow: var(--rt-shadow, 0 6px 22px rgba(0,0,0,.08));
}
.rt-ex-ribbon img { width: 64px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.rt-ex-ribbon b { font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif); font-weight: var(--rt-font-display-weight, 400); font-size: 1.6rem; line-height: 1; letter-spacing: .02em; color: var(--rt-ink, #1f1f1f); }
.rt-ex-ribbon span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rt-gray, #6b6b6b); }
.rt-ex-ribbon--earned span { color: #2e7d32; }
.rt-ex-ribbon--now { border-color: var(--rt-soe-gold); box-shadow: 0 0 0 4px rgba(232, 184, 8, .35), var(--rt-shadow-lift, 0 10px 28px rgba(0,0,0,.12)); }
.rt-ex-ribbon--now span { color: var(--rt-soe-blue); }
.rt-ex-ribbon--now img { animation: rt-ex-breathe 2.6s ease-in-out infinite; }
@keyframes rt-ex-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .rt-ex-ribbon--now img { animation: none; } }

/* The latest designation's poster (National PTA's own), beside a few words. */
.rt-ex-poster { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px 32px; align-items: center; max-width: 900px; margin: 0 auto 30px; padding: 18px; background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0); border-radius: calc(var(--rt-ex-radius) + 6px); box-shadow: var(--rt-shadow, 0 6px 22px rgba(0,0,0,.08)); }
.rt-ex-poster img { width: 100%; height: auto; border-radius: var(--rt-ex-radius); }
.rt-ex-poster-text small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-gray, #6b6b6b); }
.rt-ex-poster-text b { display: block; margin: 4px 0 8px; font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif); font-weight: var(--rt-font-display-weight, 400); font-size: 1.9rem; line-height: 1.05; }
.rt-ex-poster-text p { margin: 0 0 10px; line-height: 1.5; }
@media (max-width: 640px) { .rt-ex-poster { grid-template-columns: 1fr; text-align: center; } .rt-ex-poster img { max-width: 320px; margin: 0 auto; } }

/* The survey door: a brand-color band with the button on the right. */
.rt-ex-door {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin: 0 0 30px; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 34px);
  background: var(--rt-primary, #2566b6); color: var(--rt-on-primary, #fff);
  border-radius: calc(var(--rt-ex-radius) + 6px); box-shadow: var(--rt-shadow-lift, 0 10px 28px rgba(0,0,0,.14));
}
.rt-ex-door-text { flex: 1 1 360px; }
.rt-ex-door-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.rt-ex-door h3 { margin: 6px 0 6px; color: inherit; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.rt-ex-door p { margin: 0; opacity: .95; max-width: 60ch; }
/* On the brand ground the button inverts: light slab, brand label. The
   theme's hover arrow stays (one arrow, from the theme, not two). */
.rt-ex-door .rt-btn { background: var(--rt-white, #fff) !important; color: var(--rt-primary, #2566b6) !important; flex: 0 0 auto; --rt-btn-icon: "\f061"; }
.rt-ex-door .rt-btn:hover { filter: brightness(.96); }
.rt-ex-door-closed { text-align: center; padding: 14px 18px; margin: 0 0 26px; border-radius: var(--rt-ex-radius); background: var(--rt-cream, #f2f6fa); }

.rt-ex-h { text-align: center; margin: 34px 0 8px; }
.rt-ex-h-sub { text-align: center; margin: 0 auto 18px; max-width: 64ch; color: var(--rt-gray, #6b6b6b); }

/* National PTA's steps graphic, then one line saying which step we are on. */
.rt-ex-figure { margin: 0 0 34px; padding: 22px clamp(14px, 3vw, 34px) 18px; background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0); border-radius: calc(var(--rt-ex-radius) + 6px); box-shadow: var(--rt-shadow, 0 6px 22px rgba(0,0,0,.06)); }
.rt-ex-figure img { display: block; width: 100%; max-width: 1180px; height: auto; margin: 0 auto; }
.rt-ex-figure figcaption { margin: 16px auto 0; max-width: 70ch; text-align: center; font-size: 1rem; line-height: 1.5; }
.rt-ex-now { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--rt-primary, #2566b6); color: var(--rt-on-primary, #fff); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }

/* National PTA's six-standards graphic beside a few words. */
.rt-ex-standards { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 24px 40px; align-items: center; max-width: 960px; margin: 0 auto 26px; }
.rt-ex-standards img { width: 100%; height: auto; }
.rt-ex-standards-text h3 { margin: 0 0 8px; }
.rt-ex-standards-text p { margin: 0 0 10px; line-height: 1.5; }
@media (max-width: 700px) { .rt-ex-standards { grid-template-columns: 1fr; text-align: center; } .rt-ex-standards img { max-width: 340px; margin: 0 auto; } }
.rt-ex-foot { text-align: center; margin: 0 0 10px; }

/* ---- Survey ---------------------------------------------------------- */

/* The survey sits on a brand-tinted ground with the ribbon faint in the
   corner; the cards float on it. */
/* overflow: clip, not hidden: hidden makes the wrapper a scroll container and
   the sticky progress line stops sticking (9-22); clip only trims the
   watermark. The progress line keeps its own position too. */
.rt-ex-survey { position: relative; padding: clamp(14px, 2.5vw, 28px); border-radius: calc(var(--rt-ex-radius) + 8px); background: #f8f4e7; overflow: clip; }
.rt-ex-survey::before { content: ""; position: absolute; right: -40px; top: 40px; width: 360px; height: 460px; background: url("../img/soe-ribbon.png") no-repeat center / contain; opacity: .07; pointer-events: none; }
.rt-ex-survey > :not(.rt-ex-progress) { position: relative; }

/* The band: School of Excellence navy with a gold sash across it and the
   ribbon large and faint, the mark on a white plate, the site's own logo. */
.rt-ex-band {
  position: relative; display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 22px 34px; align-items: center;
  margin: 0 0 22px; padding: clamp(20px, 3vw, 34px); border-radius: calc(var(--rt-ex-radius) + 6px); overflow: hidden;
  color: #fff; background-color: var(--rt-soe-blue);
  background-image:
    linear-gradient(112deg, transparent 0 58%, rgba(232, 184, 8, 0.22) 58% 63%, transparent 63% 67%, rgba(232, 184, 8, 0.55) 67% 74%, transparent 74%),
    url("../img/soe-ribbon.png");
  background-repeat: no-repeat, no-repeat; background-size: auto, 520px auto; background-position: 0 0, right -120px top -60px;
  border-top: 8px solid var(--rt-soe-gold);
  box-shadow: var(--rt-shadow-lift, 0 10px 28px rgba(0,0,0,.18));
}
.rt-ex-band::before { content: ""; position: absolute; inset: 0; background: url("../img/soe-ribbon.png") no-repeat right -120px top -60px / 520px auto; opacity: .08; pointer-events: none; }
.rt-ex-band { background-image: linear-gradient(112deg, transparent 0 58%, rgba(232, 184, 8, 0.22) 58% 63%, transparent 63% 67%, rgba(232, 184, 8, 0.55) 67% 74%, transparent 74%); background-size: auto; background-position: 0 0; }
.rt-ex-band > * { position: relative; }
.rt-ex-band-plate { padding: 18px; background: #fff; border-radius: var(--rt-ex-radius); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.rt-ex-band-plate .rt-ex-logo { max-width: 100%; }
.rt-ex-band-text { text-align: center; }
.rt-ex-band-org { display: block; width: auto; max-height: 64px; margin: 0 auto 8px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.rt-ex-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.rt-ex-band p { margin: 0 0 10px; opacity: .95; line-height: 1.5; }
.rt-ex-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-weight: 700; font-size: .95rem; color: var(--rt-soe-gold); }
@media (max-width: 760px) { .rt-ex-band { grid-template-columns: 1fr; } .rt-ex-band-plate { max-width: 320px; margin: 0 auto; } }
.rt-ex-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .8; margin-right: 8px; vertical-align: middle; }

.rt-ex-notice { max-width: 72ch; margin: 0 auto 18px; padding: 12px 16px; text-align: center; border-radius: var(--rt-ex-radius); background: #fdecec; color: #8a1c1c; font-weight: 600; }

/* The progress line rides just under the site header. */
.rt-ex-progress {
  position: sticky; top: 84px; z-index: 20;
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 14px;
  background: color-mix(in srgb, var(--rt-white, #fff) 92%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--rt-line, #e2e8f0); border-radius: 999px; box-shadow: var(--rt-shadow, 0 6px 22px rgba(0,0,0,.08));
}
.rt-ex-progress-bar { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--rt-cream, #f2f6fa); overflow: hidden; }
.rt-ex-progress-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--rt-soe-gold); transition: width .25s ease; }
.rt-ex-progress-text { flex: 0 0 auto; font-size: .85rem; font-weight: 700; color: var(--rt-soe-blue); }
.rt-ex-progress.is-complete .rt-ex-progress-bar span { background: #2e7d32; }
.rt-ex-progress.is-complete .rt-ex-progress-text { color: #2e7d32; }

.rt-ex-how { text-align: center; color: var(--rt-gray, #6b6b6b); margin: 0 0 18px; }

.rt-ex-standard { margin: 0 0 22px; padding: 0 0 8px; border-radius: calc(var(--rt-ex-radius) + 4px); background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0); box-shadow: var(--rt-shadow, 0 6px 22px rgba(0,0,0,.06)); overflow: hidden; }
.rt-ex-standard { --rt-ex-std: var(--rt-soe-blue); --rt-ex-ink: #fff; border: 0; }
.rt-ex-standard-head { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding: 20px 22px 16px; color: var(--rt-ex-ink); background: var(--rt-ex-std); }
.rt-ex-standard-head h2, .rt-ex-standard-desc { color: var(--rt-ex-ink); }
.rt-ex-standard-num { display: grid; justify-items: center; gap: 4px; padding-top: 4px; }
.rt-ex-standard-num b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--rt-ex-ink); color: var(--rt-ex-std); font-family: var(--rt-font-display, "RT Display", "Arial Narrow", sans-serif); font-weight: var(--rt-font-display-weight, 400); font-size: 1.7rem; line-height: 1; }
.rt-ex-standard-num--plain { padding-top: 10px; }
.rt-ex-standard-num small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-ex-ink); opacity: .9; white-space: nowrap; }
.rt-ex-standard-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.rt-ex-standard-desc { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; }
.rt-ex-standard-goal { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--rt-gray, #6b6b6b); }
@media (max-width: 560px) {
  .rt-ex-standard-head { padding: 16px 16px 12px; }
}

.rt-ex-q { margin: 0; padding: 16px 22px 14px; border: 0; border-bottom: 1px solid var(--rt-line, #e2e8f0); }
.rt-ex-q:last-of-type { border-bottom: 0; }
.rt-ex-q legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-weight: 700; line-height: 1.4; text-align: center; }
.rt-ex-q.is-missing { background: #fff6f6; box-shadow: inset 4px 0 0 #b3141c; }
.rt-ex-q.is-answered legend::after { content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900; margin-left: 8px; color: var(--rt-ex-std, #2e7d32); font-size: .85em; }
.rt-ex-scale { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rt-ex-scale--wrap { display: flex; flex-wrap: wrap; justify-content: center; }
.rt-ex-scale--wrap .rt-ex-pill { flex: 0 1 auto; }
@media (max-width: 640px) {
  .rt-ex-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rt-ex-q { padding: 14px 16px 12px; }
}

/* A pill is a label around a hidden radio: tap anywhere on it. */
.rt-ex-pill { position: relative; display: block; margin: 0; cursor: pointer; }
.rt-ex-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rt-ex-pill span {
  display: block; padding: 10px 8px; text-align: center; font-size: .9rem; font-weight: 700; line-height: 1.2;
  border: 2px solid var(--rt-line, #e2e8f0); border-radius: 999px; background: var(--rt-white, #fff); color: var(--rt-ink, #1f1f1f);
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}
.rt-ex-scale--wrap .rt-ex-pill span { padding: 8px 14px; }
.rt-ex-pill:hover span { border-color: var(--rt-ex-std, var(--rt-primary, #2566b6)); }
.rt-ex-pill input:checked + span { background: var(--rt-ex-std, var(--rt-primary, #2566b6)); border-color: var(--rt-ex-std, var(--rt-primary, #2566b6)); color: var(--rt-ex-ink, #fff); transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--rt-ex-std, var(--rt-primary, #2566b6)) 35%, transparent); }
.rt-ex-pill input:focus-visible + span { outline: 3px solid var(--rt-ex-std, var(--rt-primary, #2566b6)); outline-offset: 2px; }

.rt-ex-field { margin: 4px 22px 12px; }
.rt-ex-field label { display: block; font-weight: 700; margin-bottom: 6px; text-align: center; }
.rt-ex-field textarea { width: 100%; padding: 11px 14px; font: inherit; color: var(--rt-ink, #1f1f1f); background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0); border-radius: var(--rt-ex-radius); box-sizing: border-box; resize: vertical; }
.rt-ex-field textarea:focus { outline: 3px solid var(--rt-primary, #2566b6); outline-offset: 1px; border-color: var(--rt-primary, #2566b6); }
@media (max-width: 640px) { .rt-ex-field { margin: 4px 16px 12px; } }

.rt-ex-actions { display: grid; justify-items: center; gap: 8px; margin: 8px 0 20px; text-align: center; }
.rt-ex-actions .rt-btn { background: var(--rt-soe-blue) !important; color: #fff !important; }
.rt-ex-actions-note { font-size: .85rem; color: var(--rt-gray, #6b6b6b); }
.rt-ex-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank you, opened, and closed cards. */
.rt-ex-thanks, .rt-ex-closed { max-width: 62ch; margin: 10px auto 30px; padding: 34px 28px; text-align: center; border-radius: calc(var(--rt-ex-radius) + 6px); background: var(--rt-white, #fff); border: 1px solid var(--rt-line, #e2e8f0); border-top: 6px solid var(--rt-soe-gold); box-shadow: var(--rt-shadow-lift, 0 10px 28px rgba(0,0,0,.12)); }
.rt-ex-thanks img, .rt-ex-closed img { width: 72px; height: auto; margin: 0 auto; }
.rt-ex-thanks h2, .rt-ex-closed h2 { margin: 10px 0 8px; }
.rt-ex-thanks p, .rt-ex-closed p { margin: 0 0 8px; }
.rt-ex-thanks-share { font-weight: 700; }

/* ---- Board panel ----------------------------------------------------- */

.rt-board-ex-bars { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .5rem; }
.rt-board-ex-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) 3.2em; gap: .6rem .9rem; align-items: center; padding: .55rem .8rem; border-radius: .6rem; background: #fff; border: 1px solid var(--rt-line, #e2e8f0); }
.rt-board-ex-bar-label { font-size: .92rem; font-weight: 600; }
.rt-board-ex-bar-label i { color: var(--rt-primary-bright, #229ce0); margin-right: .3rem; }
.rt-board-ex-bar-track { display: block; height: 10px; border-radius: 999px; background: var(--rt-cream, #f2f6fa); overflow: hidden; }
.rt-board-ex-bar-track span { display: block; height: 100%; border-radius: 999px; background: #2e7d32; }
.rt-board-ex-bar--mid .rt-board-ex-bar-track span { background: #b26a00; }
.rt-board-ex-bar--low .rt-board-ex-bar-track span { background: #8a1c1c; }
.rt-board-ex-bar-pct { text-align: right; font-size: .95rem; }
.rt-board-ex-bar-detail { grid-column: 1 / -1; font-size: .78rem; color: var(--rt-gray, #6b6b6b); }
.rt-board-ex-std { margin: .4rem 0; }
.rt-board-ex-std summary { cursor: pointer; font-weight: 700; padding: .4rem 0; }
.rt-board-ex-std summary i { color: var(--rt-primary-bright, #229ce0); margin-right: .3rem; }
.rt-board-ex-demo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.rt-board-ex-demo-q { padding: .8rem .9rem; border-radius: .7rem; background: #fff; border: 1px solid var(--rt-line, #e2e8f0); font-size: .9rem; }
.rt-board-ex-demo-q > b { display: block; margin-bottom: .4rem; }
.rt-board-ex-demo-q ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.rt-board-ex-demo-q li { display: flex; justify-content: space-between; gap: .6rem; }
.rt-board-ex-comments { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .5rem; }
.rt-board-ex-comments li { padding: .7rem .9rem; border-radius: .6rem; background: #fff; border: 1px solid var(--rt-line, #e2e8f0); white-space: pre-wrap; }
.rt-board-ex-comments li span { display: block; font-size: .78rem; margin-bottom: .2rem; }
.rt-board-ex-newrun { margin-top: .6rem; }
.rt-board-ex-newrun summary { cursor: pointer; font-weight: 700; }

.rt-board-ex-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: .2rem; }
