/* ---- Block compatibility: core blocks styled as the original components ----
   Loaded after site.css on the site and in the block editor. Page content built
   from core blocks (see patterns/) uses the same classes as the original templates;
   this file only covers the places where a core block's element differs from the
   original markup (a paragraph instead of a span, a button block instead of a
   link, an image block instead of a bare img). */

/* Labels that were <span class="eyebrow"> are paragraphs now. */
p.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  line-height: normal;
  color: var(--violet);
  max-width: none;
}

.closing p.eyebrow {
  color: #ffbd7b;
  margin-bottom: 1.0625rem;
}

/* Pillar symbol */
.pillar p.symbol {
  line-height: normal;
}

/* Results strip: numbers and labels */
.proof-item .proof-num {
  display: block;
  margin: 0;
  font: 800 clamp(38px, 4.4vw, 56px)/1 Manrope, sans-serif;
  letter-spacing: -.05em;
  color: var(--orange);
}

.proof-item .proof-label {
  display: block;
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  line-height: normal;
  font-weight: 700;
  color: #444d59;
}

/* Founders */
.leader p.leader-role {
  display: inline;
  margin: 0;
  font-size: 0.6875rem;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--orange);
}

.leader .leader-photo {
  flex: none;
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--lavender);
}

.leader .leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.leader p.leader-link-row {
  margin: 0;
  font-size: 1rem;
  line-height: normal;
  color: inherit;
}

/* Text links: the arrow is drawn here (block content only; the original templates have a <span>) */
.tms-page .text-link::after,
.tms-page p.text-link-row > a::after,
.tms-page p.leader-link-row > a::after,
.tms-page p.link-arrow > a::after {
  content: '↗';
}

p.text-link-row {
  margin: 0;
  font-size: 1rem;
  line-height: normal;
  color: inherit;
}

/* Buttons: the Buttons block looks like the original .btn links */
.wp-block-buttons.cta-row {
  gap: 0.6875rem;
  margin-top: 1.875rem;
  align-items: stretch;
}

.closing .wp-block-buttons {
  flex: none;
}

.wp-block-button .wp-block-button__link {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 100px;
  padding: 0.875rem 1.375rem;
  background: var(--violet);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
  transition: transform .2s, background .2s;
  cursor: pointer;
}

.wp-block-button .wp-block-button__link::after {
  content: '↗';
  font-size: 1.125rem;
  font-weight: 400;
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: #252b79;
  color: #fff;
}

.wp-block-button.btn-secondary .wp-block-button__link {
  background: transparent;
  border-color: #c9ccd0;
  color: var(--ink);
}

.wp-block-button.btn-secondary .wp-block-button__link:hover {
  background: #fff;
  color: var(--ink);
}

.wp-block-button.btn-orange .wp-block-button__link {
  background: var(--orange);
  color: #24283b;
}

.wp-block-button.btn-orange .wp-block-button__link:hover {
  background: #e5a044;
  color: #24283b;
}

/* ---- Home and Programs ---- */

/* Hero */
p.pill {
  margin: 0;
}

p.hero-note {
  margin-bottom: 0;
}

.wp-block-buttons.hero-actions {
  gap: 0.6875rem;
  align-items: stretch;
  margin: 0;
}

/* Brand strip */
p.strip-lead,
p.strip-item {
  margin: 0;
}

p.strip-item::before {
  content: '↗';
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 600;
}

/* Audience cards */
.path-photo .wp-block-image {
  margin: 0;
  height: 100%;
}

.path-photo .wp-block-image img {
  display: block;
}

.path-content p.path-index {
  color: var(--orange);
  font-size: 0.75rem;
  line-height: normal;
  flex: none;
  margin: 0;
}

.path-content p.text-link-row {
  display: flex;
  flex: none;
  margin: 0;
  font-size: 1rem;
  line-height: normal;
}

.path-content p.text-link-row > a {
  flex: 1;
}

/* MindShift 360 tags */
.mind-tag p.number {
  line-height: normal;
}

.mind-tag p.mind-tag-label {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 700;
  color: inherit;
}

/* Section buttons */
.wp-block-buttons.section-action {
  margin-top: 1.875rem;
}

/* Career spotlight */
.spotlight p.journey-number {
  margin: 0;
  line-height: normal;
}

.spotlight p.journey-text {
  margin: 0;
  font-size: inherit;
  line-height: normal;
  color: inherit;
}

@media (max-width: 480px) {
  .mind-tag p.mind-tag-label {
    font-size: 0.75rem;
  }
}

/* ---- Cube and program cards: plain-content source ----
   The editor (and a browser without JavaScript) shows the cube faces and the program
   cards as ordinary content; site.js builds the interactive version from it and
   removes this markup. With JavaScript on, it is hidden until then. */

html.tms-js .tms-cube-source,
html.tms-js .tms-offers-source {
  display: none;
}

.tms-cube-source {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tms-cube-source .cube-face-src,
.tms-offers-source .offer-src {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.cube-face-src .wp-block-image {
  margin: 0 0 0.5rem;
}

.cube-face-src .wp-block-image img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.cube-face-src p {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
}

.cube-face-src .cube-face-label {
  font-weight: 800;
}

.cube-face-src .cube-chip-label {
  color: var(--muted);
}

.tms-cube-source .src-instruction {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.tms-offers-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tms-offers-source .offer-src {
  padding: 1.25rem;
}

.offer-src .src-count {
  margin: 0;
  color: var(--orange);
  font-weight: 800;
}

.offer-src .src-title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.25rem;
}

.offer-src .src-desc,
.offer-src .src-intro,
.offer-src .src-item-text,
.offer-src .src-note {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.offer-panel-src {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.offer-panel-src .src-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--violet);
}

.offer-item-src .src-item-title {
  margin: 0.5rem 0 0.125rem;
  font-size: 1rem;
}

.editor-styles-wrapper .cube-chip-label::before {
  content: 'Chip: ';
  font-weight: 700;
}

@media (max-width: 760px) {
  .tms-cube-source,
  .tms-offers-source {
    grid-template-columns: 1fr;
  }
}
