/* Shared Raízes course details for the public site and the student portal. */
.roots-stages, .roots-territories, .roots-credits, .roots-portal {
  --roots-purple: #401746;
  --roots-cream: #f4ecdc;
  --roots-gold: #e4b83f;
  color: var(--roots-purple);
}
.roots-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 2rem; }
.roots-stage { min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 16px; background: var(--roots-purple); color: var(--roots-cream); }
.roots-stage + .roots-stage { background: #e5ddc5; color: var(--roots-purple); }
.roots-stage-label { margin: 0 0 1.25rem; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.roots-stage h3 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; color: inherit; }
.roots-stage p:last-child { margin: 0; line-height: 1.55; }
.roots-stage-hours { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0 0 1.5rem; }
.roots-stage-hours div { display: grid; gap: .15rem; }
.roots-stage-hours dt { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.15; font-weight: 700; color: var(--roots-gold); }
.roots-stage-hours dd { margin: 0; font-size: 1rem; }
.roots-total { margin: 0 0 2rem; font-size: 1.1rem; line-height: 1.5; }
.roots-territories { margin-top: 3rem; }
.roots-territories > h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; }
.roots-territories > p { max-width: 56rem; margin: 0 0 1.5rem; font-size: 1.1rem; line-height: 1.6; }
.roots-territory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.roots-territory { min-width: 0; padding: clamp(1.25rem, 2.5vw, 2rem); background: #fffaf2; border-radius: 16px; border-top: 5px solid #526b42; }
.roots-territory:nth-child(2) { border-color: #a63832; }
.roots-territory:nth-child(3) { border-color: var(--roots-gold); }
.roots-territory h3, .roots-territory h4 { margin: 0 0 .6rem; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.roots-territory p { margin: .5rem 0 0; line-height: 1.55; }
.roots-territory-place { font-weight: 700; }
.roots-credits { background: #fff; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter, 2rem); }
.roots-credit-project-title { margin: 0 auto 1rem; max-width: 64rem; text-align: center; font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.roots-support-phrase { max-width: 64rem; margin: 0 auto 2rem; text-align: center; font-size: 1rem; line-height: 1.6; font-style: italic; }
.roots-credit-bar { --credit-group-gap: clamp(1.5rem, 3vw, 3rem); --credit-divider: rgba(64, 23, 70, .2); max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(110px, .8fr) minmax(190px, 1.3fr) minmax(280px, 2fr) minmax(170px, 1.2fr); align-items: stretch; gap: var(--credit-group-gap); }
.roots-credit-bar > div { position: relative; display: grid; align-content: center; }
.roots-credit-bar > div + div::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: calc(var(--credit-group-gap) / -2); border-inline-start: 1px solid var(--credit-divider); }
.roots-credit-group { min-width: 0; }
.roots-credit-bar > .roots-credit-group { align-content: stretch; grid-template-rows: auto minmax(0, 1fr); }
.roots-credit-group-support { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1rem; }
.roots-credit-group-support .roots-credit-label { grid-column: 1; }
.roots-credit-group-support .roots-credit-logos { grid-column: 1 / -1; }
.roots-credit-label { margin: 0 0 1rem; text-align: center; color: #401746; font-size: .85rem; line-height: 1.4; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.roots-credit-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1rem; }
.roots-credit-logos-support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roots-credit-bar img { display: block; width: 100%; height: auto; object-fit: contain; max-height: 125px; }
.roots-credit-fac, .roots-credit-secec { width: 100%; justify-items: center; }
.roots-credit-fac img { max-width: 135px; }
.roots-credit-secec img { max-width: 250px; }
.roots-portal { background: var(--roots-cream); }
.roots-portal .eyebrow { color: #763b68; }
.roots-portal h1 { max-width: 18ch; }
.roots-portal > p { max-width: 65ch; }
.roots-portal .button { background: var(--roots-purple); color: var(--roots-cream); margin: .5rem 0 2.5rem; }
.roots-portal h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.15; margin: 2rem 0 1.25rem; }
.roots-topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding-left: 1.5rem; margin: 0 0 2rem; }
.roots-topic-list li { padding: .4rem .75rem .4rem 0; }
.roots-portal .roots-credits { margin-top: 3rem; padding: 2rem; border-radius: 16px; }
.roots-enrollment-link { display: block; padding: 1rem 0; font-weight: 650; line-height: 1.5; text-underline-offset: .2em; }
.roots-enrollment-note { margin-top: 0; font-size: .95rem; }
.roots-registration-closed { display: block; }
.roots-registration-closed .roots-registration-intro { position: static; max-width: 64rem; }
@media (max-width: 1100px) {
  .roots-credit-bar { --credit-group-gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roots-credit-bar > div:nth-child(odd)::before { display: none; }
  .roots-credit-bar > div:nth-child(n + 3) { padding-top: 2rem; border-top: 1px solid var(--credit-divider); }
  .roots-credit-logos-support { gap: 1rem; }
  .roots-credit-bar img { max-height: 115px; }
}
@media (max-width: 700px) {
  .roots-stages, .roots-territory-grid { grid-template-columns: 1fr; }
  .roots-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roots-credit-bar { --credit-group-gap: 2.5rem; grid-template-columns: 1fr; max-width: 380px; }
  .roots-credit-bar > div:nth-child(n) { padding-top: 0; border-top: 0; }
  .roots-credit-bar > div:nth-child(n + 2)::before { display: block; inset: calc(var(--credit-group-gap) / -2) 0 auto; border-inline-start: 0; border-top: 1px solid var(--credit-divider); }
  .roots-credit-group { width: 100%; }
  .roots-credit-group-support { column-gap: .8rem; }
  .roots-credit-logos { gap: 1.25rem; }
  .roots-credit-logos-support { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .roots-credit-fac img { max-width: 140px; }
  .roots-credit-secec img { max-width: 270px; }
  .roots-portal .roots-credits { margin-inline: -8px; padding: 1.5rem 1rem; }
}
@media (max-width: 360px) {
  .roots-topic-list { grid-template-columns: 1fr; }
  .roots-credit-group-support { grid-template-columns: 1fr; }
  .roots-credit-logos-support { grid-template-columns: 1fr; justify-items: center; gap: 1.5rem; }
  .roots-credit-logos-support img { max-width: 150px; max-height: 140px; }
}
