.learning-path{margin:1.4rem 0 1.8rem;text-align:left}
.learning-path>p{display:flex;justify-content:space-between;gap:1rem;font-size:.85rem;color:var(--muted);margin:0 0 .65rem}
.learning-path ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;padding:0;margin:0;list-style:none}
.learning-path li{min-width:0}
.path-card{display:flex;gap:.5rem;align-items:center;height:100%;padding:.7rem .65rem;border:1px solid var(--path-color);border-radius:10px;background:var(--path-tint);color:var(--ink);text-decoration:none;font-size:.88rem;font-weight:700;line-height:1.25}
.path-foundations{--path-color:#2b6079;--path-tint:#e6eef4}.path-gospel{--path-color:#a45e2c;--path-tint:#f8ecdf}.path-defense{--path-color:#226d70;--path-tint:#e1efeb}
.path-card[aria-current=step]{box-shadow:inset 0 0 0 1px var(--path-color)}
.path-number{display:grid;place-items:center;flex:0 0 1.5rem;width:1.5rem;min-width:1.5rem;height:1.5rem;border-radius:50%;background:var(--path-color);color:white;font-size:.85rem}
.path-card small{display:block;font-size:.69rem;font-weight:400;margin-top:.3rem;color:#435861}
.path-card.is-complete .path-number{background:#30674b}
.section-next{padding:1.25rem;margin:1.4rem 0 1.8rem;border-radius:14px;background:var(--tint);text-align:left}
.section-next .eyebrow{margin:0 0 .7rem}.section-next .button{width:100%}
.section-next p:not(.eyebrow){font-size:1rem;line-height:1.5;margin:.8rem 0 .4rem}.section-next small{color:#435861;font-size:.85rem}
.path-home{max-width:820px;margin:0 auto 2.2rem;text-align:center}.path-home h2{font:600 1.4rem/1.3 var(--sans, sans-serif)}
.path-home>p{font-size:1rem;line-height:1.6}.path-home .learning-path{margin:1.3rem 0}.path-start .button{min-width:250px}
.path-home .path-footnote{font-size:.85rem;color:var(--muted);max-width:620px;margin:1rem auto}
.deck-cover .cover-step{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700}
.foundation-secondary-actions .button,.gospel-round-end>.actions .button{flex:1}
@media(max-width:480px){.learning-path ol{gap:.35rem}.path-card{flex-direction:column;align-items:flex-start;padding:.65rem .55rem;font-size:.78rem;gap:.4rem}.path-card small{font-size:.65rem}.learning-path>p{font-size:.78rem}.section-next{padding:1rem}.path-start .button{width:100%;min-width:0}}
@media(max-width:360px){.path-card{font-size:.72rem;padding:.6rem .4rem}.path-card small{font-size:.62rem}}
.section-next .button+.button{margin-top:.7rem}
.gospel-round-end>h1,.defense-complete>h1,.foundation-results>h1{font-size:clamp(1.85rem,5vw,2.75rem);line-height:1.15;margin:1.2rem 0}
.gospel-round-end>.end-symbol,.defense-complete>.end-symbol{width:48px;height:48px;font-size:1.6rem;margin:1.4rem auto 1rem}

.path-home .learning-path {
  max-width: 25rem;
  margin: 1rem auto .95rem;
}
.path-home .learning-path > p { margin-bottom: .65rem; }
.path-home .learning-path ol {
  gap: clamp(.65rem, 2.6vw, 1.15rem);
  padding-inline: .3rem;
}
.path-cover-link {
  position: relative;
  display: block;
  width: 100%;
  max-width: 7.5rem;
  margin-inline: auto;
  border-radius: 7% / 5%;
  color: var(--ink);
  text-decoration: none;
}
.path-cover-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: inherit;
  background: var(--path-tint);
  box-shadow: 0 1px 1px #453c2540, 0 3px 7px #463b2726;
}
.path-cover-number {
  position: absolute;
  inset: -.2rem auto auto -.2rem;
  display: grid;
  place-items: center;
  min-width: 1.4rem;
  min-height: 1.4rem;
  padding: .08rem;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  background: var(--path-color);
  color: #fff;
  font: 700 .8rem/1 var(--sans, sans-serif);
  box-shadow: 0 1px 3px #172f3b38;
}
.path-cover-link.is-complete .path-cover-number { background: #30674b; }
.path-cover-link:focus-visible { outline: 3px solid var(--path-color); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .path-cover-link:hover img { box-shadow: 0 0 0 2px var(--path-color), 0 4px 9px #463b2733; }
}

@media screen and (max-width: 740px) {
  body:has(#main > .deck-intro) .site-head {
    flex-wrap: wrap;
    gap: 0 .5rem;
    padding-block: 3px;
  }
  body:has(#main > .deck-intro) .brand { min-height: 44px; max-inline-size: 100%; }
  body:has(#main > .deck-intro) .brand-mark { font-size: 1.5rem; line-height: 1; }
  body:has(#main > .deck-intro) .brand small,
  #main:has(> .deck-intro) > .crumb > span { display: none; }
  body:has(#main > .deck-intro) .gift-guide {
    max-inline-size: 100%;
    min-height: 44px;
    padding: 5px 8px;
    gap: 5px;
  }
  body:has(#main > .deck-intro) .gift-guide-label {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 3px;
    row-gap: 0;
    font-size: .75rem;
  }
  #main:has(> .deck-intro) { padding-top: 0; }
  #main:has(> .deck-intro) > .crumb { margin-bottom: 2px; }
  #main > .crumb:has(+ .deck-entry-path) {
    float: inline-start;
    max-inline-size: 48%;
    margin: 0;
  }
  #main > .deck-entry-path {
    margin: 0 0 1rem;
  }
  #main > .deck-entry-path > p {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    max-inline-size: 50%;
    margin: 0 0 0 auto;
    font-size: .82rem;
    line-height: 1.3;
    text-align: end;
    font-variant-numeric: tabular-nums;
  }
  #main > .deck-entry-path > p > strong { display: none; }
  #main > .deck-entry-path > ol {
    clear: both;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
    gap: .35rem;
  }
  #main > .deck-entry-path .path-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: .3rem .35rem;
    min-height: 3.85rem;
    padding: .45rem clamp(.3rem, 1.7vw, .65rem);
    font-size: clamp(.78rem, 3.6vw, .94rem);
    line-height: 1.2;
  }
  #main > .deck-entry-path .path-number {
    grid-area: 1 / 1;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: .74rem;
  }
  #main > .deck-entry-path .path-copy { display: contents; }
  #main > .deck-entry-path .path-name { grid-area: 2 / 1 / 3 / -1; }
  #main > .deck-entry-path .path-copy small {
    grid-area: 1 / 2;
    align-self: center;
    margin: 0;
    font-size: .7rem;
    line-height: 1.15;
  }
  #main > .deck-entry-path + .deck-intro {
    clear: both;
    grid-template-columns: clamp(42px, 12vw, 56px) minmax(0, 1fr);
    gap: .2rem .85rem;
    align-items: center;
    margin: 0 auto 1.1rem;
  }
  #main > .deck-entry-path + .deck-intro > div { display: contents; }
  #main > .deck-entry-path + .deck-intro > img.deck-art {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    margin: 0;
  }
  #main > .deck-entry-path + .deck-intro .eyebrow { display: none; }
  #main > .deck-entry-path + .deck-intro h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: clamp(1.7rem, 7.4vw, 2.05rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  #main > .deck-entry-path + .deck-intro h1 + p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    line-height: 1.4;
  }
  #main > .deck-entry-path + .deck-intro :is(.learning-intro-copy, .actions, .quick-note, .gospel-saved-order) {
    grid-column: 1 / -1;
    margin: .4rem 0 0;
    line-height: 1.45;
  }
  /* Let long labels wrap when the reader enlarges text on a narrow screen. */
  #main > .deck-entry-path .path-card,
  .foundations-intro ~ .foundation-selection .foundation-category-name,
  body:has(#main > .deck-intro) .section-link { overflow-wrap: anywhere; }
  body:has(#main > .deck-intro) .section-home { max-inline-size: 100%; }
  .foundations-intro ~ .foundation-selection > .learning-note:first-of-type {
    margin: .45rem 0 .65rem;
  }
  .foundations-intro ~ .foundation-selection .foundation-start {
    margin: .625rem 0;
    padding: .5rem .7rem;
  }
}

@media screen and (max-width: 380px) {
  #main > .deck-entry-path { margin-bottom: .75rem; }
  #main > .deck-entry-path > ol { gap: .25rem; }
  #main > .deck-entry-path .path-card {
    grid-template-rows: minmax(1.65rem, auto) 1fr;
    column-gap: .25rem;
    padding-inline: .21rem;
  }
  #main > .deck-entry-path .path-name { letter-spacing: -.015em; }
  body:has(#main > .deck-intro) .brand > span:last-child { max-inline-size: 8.5em; }
  body:has(#main > .deck-intro) .gift-guide-label {
    flex-direction: column;
    align-items: flex-start;
  }
}
