/* Competitive Careers (#/competitive). Loaded by js/competitive-careers.js when the page opens, so the printable plan's
   stylesheets (and the example PDFs made from them) never change because of it. */
.cc-head { margin-bottom: 18px; }
.cc-controls { margin: 0 0 14px; }
.cc-seg-switch { width: max-content; max-width: 100%; }
.cc-short { display: none; }

.cc-board {
  --cc-study: #0f3d3e; --cc-more: #2a8279; --cc-work: #79c2b4; --cc-service: #e2a93b; --cc-service-2: #efc97c;
  --cc-cols: minmax(200px, 236px) 78px minmax(0, 1fr) 134px 132px 22px;
  padding: 16px 20px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: .78rem; color: var(--ink-2); }
.cc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cc-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 3px; }
.cc-key-study { background: var(--cc-study); }
.cc-key-more { background: var(--cc-more); }
.cc-key-work { background: var(--cc-work); }
.cc-key-service, .cc-service { background: repeating-linear-gradient(135deg, var(--cc-service) 0 5px, var(--cc-service-2) 5px 8px); }
.cc-legend .cc-key-exam { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cc-est-line { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fdf6e4; border: 1px solid #f0d9a0; font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.cc-est-line b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.05rem/1 var(--serif); }
.cc-est-line strong { color: var(--ink); }
.cc-legend .cc-key-finish { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 3px var(--accent); }

.cc-headrow, .cc-row { display: grid; grid-template-columns: var(--cc-cols); gap: 0 18px; align-items: center; }
.cc-headrow { padding: 4px 0 8px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cc-axis-head { display: grid; gap: 4px; }
.cc-axis { position: relative; display: block; height: 1.1em; }
.cc-axis i { position: absolute; transform: translateX(-50%); font-style: normal; letter-spacing: 0; }
.cc-axis i:first-child { transform: none; }

.cc-item { border-top: 1px solid var(--line); }
/* The site's FAQ rules for details and summary (style.css) don't apply to the board's rows */
.cc-item, .cc-item:first-of-type { margin: 0; border-bottom: 0; }
.cc-body p { max-width: none; }
.cc-small, .cc-links { padding: 0; }
details.cc-method { margin-top: 18px; }
.cc-row { padding: 14px 4px 14px 0; cursor: pointer; list-style: none; border-radius: 10px; font-weight: 400; }
.cc-row::-webkit-details-marker { display: none; }
.cc-row::after, .cc-item[open] > .cc-row::after { content: none; display: none; }
.cc-row:hover .cc-name b { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.cc-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.cc-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cc-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.cc-icon svg { width: 22px; height: 22px; }
.cc-name { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.cc-name b { font-size: 1rem; line-height: 1.2; color: var(--ink); }
.cc-title { font-style: normal; font-size: .74rem; font-weight: 700; line-height: 1.45; color: var(--accent-ink); background: #fbecc8; border: 1px solid #efd38e; padding: 0 8px; border-radius: 999px; }
.cc-name small { font-size: .72rem; color: var(--ink-3); }

.cc-years { display: grid; justify-items: start; line-height: 1.15; }
.cc-years b { font: 700 1.75rem/1 var(--serif); color: var(--ink); white-space: nowrap; }
.cc-years small { font-size: .72rem; color: var(--ink-3); }
.cc-uni { margin-top: 3px; line-height: 1.25; }

.cc-road { position: relative; display: block; min-width: 0; }
.cc-track {
  position: relative; display: block; height: 26px; margin: 27px 0 0;
}
.cc-seg { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--surface); background-clip: padding-box; container-type: inline-size; }
.cc-seg.cc-start { border-radius: 6px 0 0 6px; }
.cc-seg.cc-end { border-radius: 0 6px 6px 0; border-right: 0; }
.cc-seg.cc-start.cc-end { border-radius: 6px; }
.cc-study { background-color: var(--cc-study); }
.cc-more { background-color: var(--cc-more); }
.cc-work { background-color: var(--cc-work); }
.cc-extra { opacity: .38; }
.cc-seg i { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 6px; overflow: hidden; font-style: normal; font-size: .66rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cc-n { white-space: pre; }
/* A segment too narrow for its name keeps just the years; the name stays in the tooltip, the legend and the opened row */
@container (max-width: 42px) { .cc-n-xs { display: none; } }
@container (max-width: 54px) { .cc-n-s { display: none; } }
@container (max-width: 66px) { .cc-n-m { display: none; } }
@container (max-width: 80px) { .cc-n-l { display: none; } }
.cc-work i, .cc-service i { color: var(--brand); }
.cc-service i { text-shadow: 0 0 3px #f6dfa7; }
.cc-exam { position: absolute; top: -12px; height: 18px; width: 18px; margin-left: -9px; z-index: 2; }
.cc-exam::before { content: ''; position: absolute; top: 50%; left: 3px; width: 12px; height: 12px; margin-top: -6px; transform: rotate(45deg); border-radius: 2px; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 2px var(--surface); }
.cc-exam b { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); font-size: .64rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.cc-exam-l b { left: auto; right: 0; transform: none; }
.cc-exam-r b { left: 0; transform: none; }
.cc-finish { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 1px; border-radius: 50%; z-index: 2; background: var(--ink); box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 2px var(--surface); }
.cc-noexam { position: absolute; bottom: calc(100% + 4px); transform: translateX(calc(-100% + 8px)); font-size: .66rem; font-style: italic; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

.cc-label { display: none; }
.cc-pay, .cc-marks { display: grid; align-content: center; min-width: 0; }
.cc-pay b, .cc-marks b { font-size: 1.15rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.cc-pay b small, .cc-marks b small { font-size: .7rem; font-weight: 500; color: var(--ink-3); }
.cc-pay > small, .cc-marks > small { font-size: .7rem; line-height: 1.3; color: var(--ink-3); }
.cc-bar, .cc-gauge { position: relative; display: block; height: 6px; margin: 6px 0 4px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.cc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--brand-2); }
/* mid-career: the lighter part of the bar beyond the starting pay; striped where it is only the most a grade pays */
.cc-bar i.cc-bar-mid { background: #9fb7b2; } /* --brand-2 lightened towards --tint */
.cc-bar i.cc-bar-upto { background: repeating-linear-gradient(135deg, #9fb7b2 0 4px, var(--tint) 4px 6px); }
.cc-pay > small.cc-mid { font-size: .72rem; color: var(--ink-2); }
.cc-mid strong { font-weight: 700; color: var(--ink); }
.cc-gauge { background: linear-gradient(to right, transparent calc(20% - 1px), var(--surface) calc(20% - 1px) 20%, transparent 20% calc(40% - 1px), var(--surface) calc(40% - 1px) 40%, transparent 40% calc(60% - 1px), var(--surface) calc(60% - 1px) 60%, transparent 60% calc(80% - 1px), var(--surface) calc(80% - 1px) 80%, transparent 80%), var(--tint); }
.cc-gauge i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(to right, #f1cf87, var(--accent)); }
.cc-key { white-space: normal; }

.cc-open { position: relative; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; }
.cc-open::before, .cc-open::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 1.6px; margin: -.8px 0 0 -4.5px; border-radius: 1px; background: var(--ink-2); transition: transform .2s; }
.cc-open::after { transform: rotate(90deg); }
.cc-item[open] .cc-open::after { transform: rotate(0deg); }
.cc-row:hover .cc-open { border-color: var(--brand-2); }

.cc-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; background: var(--paper); }
.cc-col h3 { margin: 0 0 8px; font: 700 .98rem/1.3 var(--font); color: var(--ink); }
.cc-col h4 { margin: 14px 0 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cc-steps, .cc-exams, .cc-unis { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cc-step, .cc-exams li { position: relative; padding-left: 18px; font-size: .86rem; line-height: 1.4; }
.cc-step::before { content: ''; position: absolute; left: 0; top: .3em; width: 10px; height: 10px; border-radius: 3px; background: var(--cc-study); }
.cc-step-more::before { background: var(--cc-more); }
.cc-step-work::before { background: var(--cc-work); }
.cc-step-service::before { background: repeating-linear-gradient(135deg, var(--cc-service) 0 3px, var(--cc-service-2) 3px 5px); }
.cc-exams li::before { content: ''; position: absolute; left: 1px; top: .4em; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; background: var(--accent); box-shadow: inset 0 0 0 1.2px var(--ink); }
.cc-step span { color: var(--ink-3); font-size: .8rem; white-space: nowrap; }
.cc-step small, .cc-exams small, .cc-unis small { display: block; font-size: .8rem; color: var(--ink-2); }
.cc-col-wide { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.cc-col-wide h4 { margin-top: 0; }
.cc-unis { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.cc-unis li { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .82rem; line-height: 1.4; }
.cc-uni-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cc-uni-top b { font-size: .8rem; letter-spacing: .04em; color: var(--brand); }
.cc-uni-top em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.cc-uni-prog { font-weight: 600; color: var(--ink); }
.cc-unis small { color: var(--ink-3); font-size: .78rem; }
.cc-unis .cc-uni-subj { color: var(--ink-2); font-weight: 600; }
.cc-nw { white-space: nowrap; }
.cc-unis .cc-uni-check { color: var(--accent-ink); font-weight: 600; }
.cc-unis .cc-uni-src { margin-top: 2px; }
.cc-uni-src a { color: var(--brand); overflow-wrap: anywhere; }
.cc-small { margin: 0 0 8px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.cc-est { margin-left: 4px; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); background: #fbecc8; }
.cc-warn { margin: 0 0 10px; padding: 7px 10px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #fdf3dc; font-size: .83rem; color: var(--accent-ink); }
.cc-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-size: .88rem; font-weight: 600; }
.cc-foot { margin: 0; padding: 10px 0 8px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }

.cc-note { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 0; padding: 16px 18px; border: 1px solid #f0d9a0; border-radius: var(--radius); background: #fdf6e4; }
.cc-note-mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.6rem/1 var(--serif); }
.cc-note p { margin: 0 0 6px; max-width: 92ch; font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.cc-note p:last-child { margin: 0; }
.cc-note b { color: var(--ink); }
.cc-method { margin-top: 18px; }
.cc-notes { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 18px; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }

/* The roads draw themselves in, row after row, when the page opens or the order changes */
@media (prefers-reduced-motion: no-preference) {
  html:not(.low-data) .cc-track { animation: cc-reveal .8s cubic-bezier(.25, .7, .25, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes cc-reveal { from { clip-path: inset(-32px 100% -6px -12px); } to { clip-path: inset(-32px -90px -6px -12px); } }
/* a gold comet, as on the home map, runs ahead of each road as it draws and stops at the licensed title */
@media (prefers-reduced-motion: no-preference) {
  html:not(.low-data) .cc-track::after { content: ""; position: absolute; top: 50%; left: 0; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
    background: #fff3d1; box-shadow: 0 0 8px 3px rgba(237, 182, 75, .75), -14px 0 12px -2px rgba(237, 182, 75, .4);
    animation: cc-comet .8s cubic-bezier(.25, .7, .25, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes cc-comet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: var(--cc-end, 100%); opacity: 0; } }

/* Tablets and small laptops: the road gets the full row width under the career, years, pay and marks */
@media (max-width: 1099px) {
  .cc-headrow { display: none; }
  .cc-row { grid-template-columns: minmax(0, 1.6fr) 84px minmax(0, 1fr) minmax(0, 1fr) 22px; grid-template-areas: "who years pay marks open" "road road road road road"; gap: 4px 18px; }
  .cc-who { grid-area: who; }
  .cc-years { grid-area: years; }
  .cc-road { grid-area: road; }
  .cc-pay { grid-area: pay; }
  .cc-marks { grid-area: marks; }
  .cc-open { grid-area: open; }
  .cc-label { display: block; margin-bottom: 1px; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .cc-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cc-seg-switch { width: 100%; }
  .cc-board { padding: 12px 14px 4px; }
  .cc-legend { gap: 6px 12px; font-size: .74rem; }
  .cc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "who who years" "road road road" "pay marks open"; gap: 6px 14px; padding: 14px 0; }
  .cc-years { justify-items: end; text-align: right; }
  .cc-years b { font-size: 1.5rem; }
  .cc-uni { white-space: nowrap; }
  .cc-seg i { padding: 0 3px; font-size: .62rem; }
  .cc-who { gap: 10px; }
  .cc-icon { width: 36px; height: 36px; border-radius: 11px; }
  .cc-icon svg { width: 20px; height: 20px; }
  .cc-title { white-space: nowrap; }
  .cc-open { align-self: end; justify-self: end; margin-bottom: 4px; }
  .cc-body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .cc-note { padding: 14px; gap: 12px; }
  .cc-note-mark { width: 32px; height: 32px; font-size: 1.35rem; }
}
@media (max-width: 420px) {
  .cc-pay b small, .cc-marks b small { display: block; margin-top: 1px; }
  .cc-years { max-width: 72px; }
  .cc-uni { white-space: normal; }
  .cc-title { white-space: normal; border-radius: 8px; padding: 0 6px; }
}
@media (max-width: 380px) {
  .cc-long { display: none; }
  .cc-short { display: inline; }
}
@media print {
  html .cc-track, html:not(.low-data) .cc-track { animation: none; clip-path: none; }
  html .cc-track::after { display: none; }
  .cc-board, .cc-est-line, .cc-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cc-row, .cc-unis li { break-inside: avoid; }
}
