/* ===================================================================
   MTS Corp — the competency-clocks feature page
   ===================================================================
   Page-scoped. Loaded by the two unlisted feature-video pages through
   their @@section Head: Views/CompetencyClocks/Index.cshtml and
   Views/ContentPipeline/Index.cshtml (which adds content-pipeline.css
   on top). Nothing else on the site draws these figures: the workflow
   strip, the before/after pair, the stage-scoping table and the cadence
   lattices. A change here shows on BOTH pages.

   Load order: theme style.css -> brand.css -> corp-brand.css ->
   corp-components.css -> THIS FILE.

   Every colour resolves to a brand token from
   /_content/Mts.Branding/branding/brand.css. Never introduce a hue
   here — if a value is missing, it belongs in the brand file.

   The page sits inside the layout's own .container, so the width cap
   below is a reading measure, not a grid.
*/

.cc-page {
    max-width: 1000px;
    margin-inline: auto;
}

/* ── shared text furniture ─────────────────────────────────────── */

.cc-eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mts-text-muted);
    margin-bottom: .55rem;
}

.cc-lede {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--mts-text);
    max-width: 60ch;
}

.cc-prose { max-width: 64ch; }

/* A section rule rather than the theme's heavy vertical padding: the
   page is short and the rules are what keep the three blocks apart. */
.cc-section {
    padding-block: 2.5rem;
    border-top: 1px solid var(--mts-border);
}

.cc-section-last { border-top: 0; }

/* ── the video ─────────────────────────────────────────────────── */

.cc-video-frame {
    border-radius: var(--mts-radius-lg);
    overflow: hidden;
    background: var(--mts-navy);
    aspect-ratio: 16 / 9;
    box-shadow: 0 1px 2px rgba(22, 40, 60, .06), 0 8px 24px rgba(22, 40, 60, .08);
}

.cc-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
}

.cc-video-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
    font-size: .88rem;
    color: var(--mts-text-muted);
}

/* The transcript is collapsed by default — it is there for someone who
   cannot use the audio, and for search inside the page, not as reading. */
.cc-transcript summary {
    cursor: pointer;
    color: var(--mts-blue);
    list-style: none;
}

.cc-transcript summary::-webkit-details-marker { display: none; }
.cc-transcript[open] summary { color: var(--mts-text-muted); }

.cc-transcript p {
    max-width: 70ch;
    margin-top: .7em;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--mts-text);
}

.cc-transcript p b {
    margin-right: .5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--mts-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ── the loop: six nodes, two of them the supervisor's ──────────── */

.cc-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    margin-top: 1.6rem;
}

@media (max-width: 991.98px) { .cc-flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .cc-flow { grid-template-columns: repeat(2, 1fr); } }

.cc-node {
    position: relative;
    background: #fff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-md);
    padding: .9rem .75rem .8rem;
}

.cc-node b {
    display: block;
    margin-bottom: .25rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--mts-navy);
    line-height: 1.25;
}

.cc-node span.cc-d {
    display: block;
    font-size: .78rem;
    line-height: 1.4;
    color: var(--mts-text-muted);
}

/* Heritage Red marks the two steps a human performs. It is the page's
   only use of the red, which is what makes it mean anything (guide §4). */
.cc-node-you {
    border-color: var(--mts-heritage-red);
    box-shadow: inset 0 3px 0 var(--mts-heritage-red);
}

.cc-node-auto { background: var(--mts-paper); }

.cc-tag {
    position: absolute;
    top: -.55rem;
    right: .6rem;
    padding: .06rem .45rem;
    border: 1px solid var(--mts-border);
    border-radius: 3px;
    background: var(--mts-surface);
    color: var(--mts-text-muted);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cc-node-you .cc-tag {
    background: var(--mts-heritage-red);
    border-color: var(--mts-heritage-red);
    color: #fff;
}

.cc-node-auto .cc-tag {
    background: var(--mts-paper-deep);
    border-color: var(--mts-paper-deep);
    color: var(--mts-ink-soft);
}

.cc-flow-key {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: .9rem;
    font-size: .78rem;
    color: var(--mts-text-muted);
}

.cc-flow-key i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    vertical-align: -2px;
    margin-right: .4rem;
}

/* ── before / after ────────────────────────────────────────────── */

.cc-ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.6rem;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-md);
    overflow: hidden;
}

@media (max-width: 767.98px) { .cc-ba { grid-template-columns: 1fr; } }

.cc-ba > div { padding: 1.25rem 1.4rem; }
.cc-ba-before { background: var(--mts-surface); }
.cc-ba-after { background: var(--mts-paper); }

.cc-ba h3 {
    margin-bottom: .6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mts-navy);
}

.cc-ba ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .9rem;
    color: var(--mts-text);
}

.cc-ba li + li { margin-top: .4rem; }
.cc-ba-after li strong { color: var(--mts-green-text); }

/* ── the two feature cards ─────────────────────────────────────── */

.cc-fits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.6rem;
}

@media (max-width: 991.98px) { .cc-fits { grid-template-columns: 1fr; } }

.cc-fit {
    background: #fff;
    border: 1px solid var(--mts-border);
    border-radius: var(--mts-radius-lg);
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: 0 1px 2px rgba(22, 40, 60, .05);
}

.cc-fit h3 {
    margin-bottom: .5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mts-navy);
}

.cc-fit p {
    margin: 0;
    font-size: .92rem;
    color: var(--mts-text);
}

.cc-vis {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mts-surface);
}

/* stage-scoped item rows — the product's own dense-table texture */
.cc-srow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .4rem 0;
    font-size: .84rem;
    color: var(--mts-text);
}

.cc-srow + .cc-srow { border-top: 1px solid var(--mts-surface); }

.cc-segs {
    display: inline-flex;
    flex: none;
    border: 1px solid var(--mts-border);
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    font-size: .68rem;
    white-space: nowrap;
}

.cc-segs i {
    padding: .18rem .45rem;
    border-right: 1px solid var(--mts-border);
    color: var(--mts-text-muted);
    font-style: normal;
}

.cc-segs i:last-child { border-right: 0; }

.cc-segs i.cc-on {
    background: var(--mts-blue-tint);
    color: var(--mts-blue-ink);
    font-weight: 600;
}

/* ── cadence lattices ──────────────────────────────────────────── */

.cc-cad {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: .75rem;
    align-items: center;
}

.cc-cad + .cc-cad { margin-top: 1.25rem; }

@media (max-width: 575.98px) {
    .cc-cad { grid-template-columns: 1fr; gap: .1rem; }
}

.cc-who {
    font-size: .88rem;
    font-weight: 600;
    color: var(--mts-navy);
}

.cc-who span {
    display: block;
    font-size: .74rem;
    font-weight: 400;
    color: var(--mts-text-muted);
}

/* The rail is drawn between the first and last dot rather than edge to
   edge, so it reads as a timeline joining the slots, not a divider. */
.cc-lattice {
    display: grid;
    position: relative;
}

.cc-lattice::before {
    content: "";
    position: absolute;
    top: 9px;
    height: 2px;
    background: var(--mts-border);
}

.cc-lattice-4 { grid-template-columns: repeat(4, 1fr); }
.cc-lattice-4::before { left: 12.5%; right: 12.5%; }

.cc-lattice-2 { grid-template-columns: repeat(2, 1fr); }
.cc-lattice-2::before { left: 25%; right: 25%; }

.cc-slot {
    position: relative;
    padding-top: 1.5rem;
    text-align: center;
}

.cc-slot::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--mts-blue-anchor);
}

.cc-slot-done::before {
    background: var(--mts-verified-green);
    border-color: var(--mts-verified-green);
}

.cc-slot b {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--mts-navy);
}

.cc-slot em {
    display: block;
    margin-top: .05rem;
    font-size: .7rem;
    font-style: normal;
    color: var(--mts-text-muted);
}

/* ── closing call to action ────────────────────────────────────── */

.cc-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1.9rem;
    border-radius: var(--mts-radius-lg);
    background: var(--mts-navy);
    color: var(--mts-page-bg);
}

@media (max-width: 767.98px) { .cc-cta { grid-template-columns: 1fr; } }

.cc-cta h2 { color: var(--mts-page-bg); }

.cc-cta p {
    margin: .5rem 0 0;
    max-width: 54ch;
    color: var(--mts-page-bg);
    opacity: .85;
}

/* Reversed out of the navy, not Heritage Red: red on navy is 2.3:1 and
   the guide reserves that pairing for the inverted lockup. No typed
   chevron here either — .chev-next is for links, not solid buttons. */
.cc-cta .cc-btn {
    display: inline-block;
    padding: .65rem 1.1rem;
    border-radius: 5px;
    background: var(--mts-page-bg);
    color: var(--mts-navy);
    font-size: .94rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.cc-cta .cc-btn:hover,
.cc-cta .cc-btn:focus {
    background: #fff;
    color: var(--mts-navy);
}
