/* PAL course selection — visual match for the course-selection handoff. */
body.pal-marketing.pal-courses {
  background: #fbead8 !important;
  color: #172a33;
}

.pal-courses {
  --paper: #fbead8;
  --surface: #fff9f1;
  --ink: #172a33;
  --navy: #0b2b45;
  --green: #28543a;
  --green-dark: #1f432f;
  --green-soft: #e7eee3;
  --maroon: #7a1f1b;
  --gold: #b58a4f;
  --muted: #536065;
  --line: #dfc5aa;
  --line-soft: #ead8c4;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.pal-courses h1,
.pal-courses h2,
.pal-courses h3 { font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 500; margin-top: 0; }
.pal-courses p { margin-top: 0; }
.pal-courses a { color: inherit; }
.pal-courses a:focus-visible,
.pal-courses button:focus-visible,
.pal-courses input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.pal-courses [hidden] { display: none !important; }
.palc-wrap { width: min(100% - 3.5rem, 1220px); margin-inline: auto; }

.palc-hero { position: relative; overflow: hidden; padding: 1.35rem 0 4.15rem; border-bottom: 1px solid var(--line); }
.palc-hero:after {
  content: "";
  position: absolute;
  top: 2.8rem;
  right: -7rem;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(181, 138, 79, .19);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(181, 138, 79, .035), 0 0 0 92px rgba(181, 138, 79, .025);
  pointer-events: none;
}
.palc-crumbs { display: flex; align-items: center; gap: .6rem; color: #71675f; font-size: .8rem; padding-top: .15rem; }
.palc-crumbs a { color: var(--green); text-decoration: none; }
.palc-crumbs a:hover { text-decoration: underline; }
.palc-crumbs span[aria-hidden] { color: #ad8861; }
.palc-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(2rem, 5vw, 5.6rem);
  align-items: center;
  margin-top: 2.45rem;
}
.palc-eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; color: #795331; font-size: .73rem; font-weight: 800; letter-spacing: .11em; }
.palc-badge { display: inline-flex; align-items: center; min-height: 28px; padding: .25rem .5rem; border-radius: 4px; background: #89623d; color: #fff8ee; letter-spacing: .035em; }
.palc-hero h1 { max-width: 690px; margin: 0 0 1rem; color: var(--maroon); font-size: clamp(3.1rem, 5.2vw, 4.35rem); line-height: 1.02; letter-spacing: -.045em; }
.palc-hero h1 span { color: var(--green); }
.palc-lead { max-width: 640px; margin-bottom: 1.45rem; color: #293a3d; font-size: 1.12rem; line-height: 1.62; }
.palc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.palc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  min-height: 49px;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fffaf1 !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 12px rgba(60, 38, 25, .14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.palc-button:hover { transform: translateY(-2px); box-shadow: 0 9px 17px rgba(60, 38, 25, .18); color: #fffaf1 !important; }
.palc-button-maroon { background: var(--maroon); }
.palc-button-maroon:hover { background: #631815; }
.palc-button-green { background: var(--green); }
.palc-button-green:hover { background: var(--green-dark); }
.palc-button span { font-size: 1.25rem; line-height: 1; font-weight: 400; }
.palc-text-link { color: var(--green) !important; font-weight: 700; text-decoration: none !important; border-bottom: 1px solid currentColor; }
.palc-text-link:hover { color: var(--maroon) !important; }
.palc-note { display: flex; align-items: flex-start; gap: .55rem; max-width: 570px; margin: 1.25rem 0 0; color: #5d625d; font-size: .84rem; }
.palc-note svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: .1rem; color: var(--gold); }

.palc-route { position: relative; padding: 1.55rem; border: 1px solid #d8bb99; border-radius: 14px; background: #fff8ef; box-shadow: 0 9px 22px rgba(73, 43, 23, .09); }
.palc-route:before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(181, 138, 79, .17); border-radius: 10px; pointer-events: none; }
.palc-route-top { position: relative; display: flex; align-items: center; gap: .75rem; padding: .15rem .15rem 1.05rem; border-bottom: 1px solid var(--line-soft); }
.palc-route-seal { display: grid; place-items: center; flex: 0 0 49px; width: 49px; height: 49px; border: 3px double var(--maroon); border-radius: 50%; color: var(--maroon); font: bold .83rem Georgia, serif; }
.palc-route-top small { display: block; color: #80603e; font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.palc-route-top strong { display: block; color: var(--navy); font: 1.32rem/1.18 Georgia, serif; }
.palc-steps { position: relative; display: grid; gap: .55rem; margin: 1.05rem 0 0; padding: 0; list-style: none; }
.palc-step { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: .7rem; min-height: 55px; padding: .52rem .65rem; border: 1px solid var(--line-soft); border-radius: 8px; background: #fffdf9; }
.palc-step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f2e3c8; color: var(--maroon); font-size: .72rem; font-weight: 800; }
.palc-step strong { display: block; color: var(--ink); font-size: .9rem; font-family: Arial, Helvetica, sans-serif; }
.palc-step small { display: block; color: #68706c; font-size: .73rem; }
.palc-step-mark { color: var(--gold); font-size: 1.05rem; }
.palc-step:last-child { border-color: #b9cab4; background: var(--green-soft); }
.palc-step:last-child .palc-step-num { background: var(--green); color: #fff; }
.palc-step:last-child .palc-step-mark { color: var(--green); }
.palc-levels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: .38rem; margin: 1rem .15rem .2rem; }
.palc-levels:before { content: ""; position: absolute; left: 8%; right: 8%; top: 14px; height: 1px; background: #d5bea3; }
.palc-dot { position: relative; text-align: center; color: #6c6f68; font-size: .62rem; }
.palc-dot b { display: grid; place-items: center; width: 29px; height: 29px; margin: 0 auto .3rem; border: 1px solid #d7bda1; border-radius: 50%; background: var(--surface); color: var(--maroon); font-size: .69rem; }
.palc-dot:last-child b { background: var(--green); border-color: var(--green); color: #fff; }

.palc-catalog { padding: 4rem 0 4.3rem; }
.palc-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.35rem; }
.palc-overline { display: inline-block; margin-bottom: .4rem; color: #895e37; font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.palc-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; }
.palc-heading > p { max-width: 450px; margin: 0 0 .15rem; color: var(--muted); font-size: .97rem; }
.palc-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.15rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 12px rgba(90, 54, 31, .07); }
.palc-search { flex: 1 1 280px; max-width: 410px; color: #303e42; font-size: .78rem; font-weight: 800; }
.palc-search-wrap { position: relative; display: block; margin-top: .38rem; }
.palc-search-wrap svg { position: absolute; top: 50%; left: .82rem; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #79604e; stroke-width: 1.8; stroke-linecap: round; }
.palc-search-wrap input { width: 100%; min-height: 44px; padding: .62rem .8rem .62rem 2.55rem; border: 1px solid #d7c1ad; border-radius: 7px; background: #fffdf9; color: var(--ink); font-size: .95rem; }
.palc-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.palc-chip { display: inline-flex; align-items: center; min-height: 42px; padding: .48rem .72rem; border: 1px solid #ddc6ab; border-radius: 6px; background: #fff9ef; color: #374845; font-size: .79rem; font-weight: 800; cursor: pointer; }
.palc-chip:hover { border-color: var(--green); }
.palc-chip.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.palc-count { margin: 0 0 .9rem; color: #626964; font-size: .82rem; }

.palc-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, .72fr); gap: 2rem; min-height: 300px; margin-bottom: 1rem; padding: 1.8rem 1.9rem; border: 1px solid #456a4d; border-radius: 13px; background: #244b33; box-shadow: 0 10px 22px rgba(40, 84, 58, .15); color: #fff9ee; }
.palc-featured-head { display: flex; align-items: center; gap: .85rem; }
.palc-featured-icon { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(255, 245, 225, .34); border-radius: 12px; background: #315c41; color: #f0d3a9; }
.palc-featured-icon svg { width: 43px; height: 43px; }
.palc-status { display: inline-flex; align-items: center; gap: .38rem; padding: .28rem .48rem; border-radius: 4px; background: #f1dfbd; color: #315239; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.palc-status:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.palc-featured h3 { margin: 1rem 0 .5rem; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.08; color: #fff9ee; }
.palc-featured > div > p { max-width: 620px; margin-bottom: 1rem; color: #e6e9dc; font-size: .97rem; }
.palc-tags { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: 1.25rem; }
.palc-tags span { padding: .28rem .48rem; border: 1px solid rgba(255, 245, 225, .22); border-radius: 5px; color: #ecdfc9; font-size: .72rem; }
.palc-featured-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.palc-featured .palc-button { background: #fff4df; color: var(--green-dark) !important; box-shadow: none; }
.palc-featured .palc-button:hover { background: #fffaf1; }
.palc-details { color: #e5c38f !important; font-size: .82rem; font-weight: 700; text-decoration: none !important; border-bottom: 1px solid currentColor; }
.palc-evidence { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 1.35rem; border: 1px solid rgba(255, 245, 225, .2); border-radius: 10px; background: #1f432f; }
.palc-evidence > small { color: #d9bc8c; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.palc-evidence-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: .9rem 0 1.05rem; border-block: 1px solid rgba(255,255,255,.14); }
.palc-stat { padding: .9rem .55rem .85rem; text-align: center; }
.palc-stat + .palc-stat { border-left: 1px solid rgba(255,255,255,.14); }
.palc-stat strong { display: block; color: #fff4df; font: 2rem/1 Georgia, serif; }
.palc-stat span { display: block; margin-top: .35rem; color: #cfd9cc; font-size: .67rem; }
.palc-evidence p { margin: 0; color: #d9e0d5; font-size: .8rem; line-height: 1.5; }

.palc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.palc-grid:has(> :only-child) { grid-template-columns: 1fr; }
.palc-card { display: flex; flex-direction: column; min-height: 300px; padding: 1.35rem 1.4rem 1.25rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 7px 15px rgba(94, 57, 32, .08); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.palc-card:hover { transform: translateY(-2px); border-color: #c3a07a; box-shadow: 0 10px 18px rgba(94, 57, 32, .12); }
.palc-card-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.palc-icon { display: grid; place-items: center; width: 61px; height: 61px; border: 1px solid #e2c6a8; border-radius: 11px; background: #fbefe2; color: var(--maroon); }
.palc-card:nth-child(even) .palc-icon { background: var(--green-soft); border-color: #c5d3c0; color: var(--green); }
.palc-icon svg { width: 39px; height: 39px; }
.palc-coming { padding: .27rem .45rem; border: 1px solid #dec59f; border-radius: 4px; background: #f2e3c8; color: #765124; font-size: .65rem; font-weight: 800; letter-spacing: .065em; white-space: nowrap; }
.palc-card h3 { margin: .9rem 0 .4rem; color: var(--ink); font-size: 1.55rem; line-height: 1.16; }
.palc-card > p { margin-bottom: .85rem; color: #475457; font-size: .9rem; line-height: 1.5; }
.palc-card .palc-tags { margin-bottom: 1rem; }
.palc-card .palc-tags span { border: 1px solid var(--line-soft); background: #fffdf9; color: #535f5a; }
.palc-card button,
.palc-card-link { display: inline-flex; align-items: center; justify-content: space-between; align-self: stretch; min-height: 44px; margin-top: auto; padding: .6rem .78rem; border: 1px solid #ccb08f; border-radius: 6px; background: #fff8ef; color: var(--green) !important; font-size: .81rem; font-weight: 800; cursor: pointer; text-decoration: none !important; }
.palc-card button:hover,
.palc-card-link:hover { border-color: var(--green); background: var(--green-soft); }
.palc-empty { padding: 2rem; border: 1px dashed #bd9165; border-radius: 9px; background: var(--surface); color: var(--muted); text-align: center; }

.palc-flow { padding: 3.8rem 0; border-top: 1px solid var(--line); background: #fbead8; }
.palc-title { display: flex; align-items: center; gap: .6rem; margin: 0 auto .6rem; font-size: clamp(1.9rem, 3vw, 2.55rem); line-height: 1.2; text-align: center; }
.palc-title:before, .palc-title:after { content: ""; flex: 1; height: 1px; background: #c99b68; }
.palc-title span { display: inline-flex; align-items: center; gap: .65rem; }
.palc-title span:before, .palc-title span:after { content: "◆"; color: var(--gold); font: .55rem Arial, sans-serif; }
.palc-flow-lead { max-width: 720px; margin: 0 auto 1.65rem; color: var(--muted); text-align: center; }
.palc-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.palc-flow-card { position: relative; min-height: 194px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 6px 13px rgba(89, 52, 28, .07); }
.palc-flow-num { position: absolute; top: 1rem; right: 1rem; color: #d2b28c; font: 2.2rem/1 Georgia, serif; }
.palc-flow-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .75rem; border-radius: 9px; background: #f4e3dc; color: var(--maroon); }
.palc-flow-card:nth-child(2) .palc-flow-icon { background: #f2e3c8; color: #805b2d; }
.palc-flow-card:nth-child(3) .palc-flow-icon { background: var(--green-soft); color: var(--green); }
.palc-flow-icon svg { width: 27px; height: 27px; }
.palc-flow-card h3 { margin: 0 0 .35rem; font-size: 1.3rem; }
.palc-flow-card p { margin: 0; color: var(--muted); font-size: .87rem; }

.palc-bottom { padding: 3.4rem 0; }
.palc-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 220px; padding: 1.8rem 2rem; border: 1px solid #d8b48f; border-radius: 12px; background: var(--surface); box-shadow: 0 9px 22px rgba(73, 43, 23, .09); }
.palc-cta h2 { max-width: 660px; margin: .25rem 0 .45rem; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.12; }
.palc-cta p { max-width: 650px; margin: 0; color: var(--muted); }
.palc-cta .palc-button { margin-top: 1rem; }
.palc-mark { flex: 0 0 185px; height: 145px; display: grid; place-items: center; border-left: 1px solid var(--line-soft); }
.palc-mark span { display: grid; place-items: center; width: 118px; height: 118px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 0 8px var(--surface), inset 0 0 0 9px #d8b98f; color: var(--maroon); font: bold 1.4rem Georgia, serif; }

.pal-courses dialog { width: min(100% - 2rem, 560px); padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px rgba(28, 44, 38, .28); }
.pal-courses dialog::backdrop { background: rgba(20, 45, 39, .52); }
.palc-dialog { padding: 1.45rem; }
.palc-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.palc-dialog-kicker { color: #845b34; font-size: .7rem; font-weight: 800; letter-spacing: .11em; }
.pal-courses dialog h2 { margin: .25rem 0 .5rem; font-size: 1.85rem; line-height: 1.15; }
.pal-courses dialog p { color: var(--muted); font-size: .91rem; }
.palc-dialog-close { border: 0; background: transparent; color: #6d6a64; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.palc-dialog-list { display: grid; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.palc-dialog-list li { display: flex; gap: .55rem; padding: .55rem .65rem; border: 1px solid var(--line-soft); border-radius: 6px; background: #fffdf9; color: #344346; font-size: .86rem; }
.palc-dialog-list li:before { content: "✓"; color: var(--green); font-weight: 800; }
.palc-dialog-foot { display: flex; justify-content: flex-end; padding-top: .8rem; border-top: 1px solid var(--line-soft); }
.palc-dialog-foot button { min-height: 42px; padding: .55rem .85rem; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font-weight: 700; cursor: pointer; }

@media (max-width: 1040px) {
  .palc-hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 2rem; }
  .palc-featured { grid-template-columns: 1fr 310px; gap: 1.25rem; }
}
@media (max-width: 860px) {
  .palc-wrap { width: min(100% - 2rem, 700px); }
  .palc-hero-grid { grid-template-columns: 1fr; }
  .palc-hero { padding-bottom: 3rem; }
  .palc-route { max-width: 620px; }
  .palc-featured { grid-template-columns: 1fr; }
  .palc-evidence { min-height: 160px; }
  .palc-heading { align-items: start; }
  .palc-flow-grid { grid-template-columns: 1fr; }
  .palc-flow-card { min-height: 155px; }
}
@media (max-width: 650px) {
  .palc-wrap { width: min(100% - 1.5rem, 560px); }
  .palc-hero { padding-top: .95rem; }
  .palc-hero-grid { margin-top: 1.8rem; }
  .palc-hero h1 { font-size: clamp(2.55rem, 12vw, 3.45rem); }
  .palc-lead { font-size: 1rem; }
  .palc-actions .palc-button { flex: 1 1 150px; }
  .palc-route { padding: 1.05rem; }
  .palc-step { grid-template-columns: 34px 1fr auto; }
  .palc-step-num { width: 32px; height: 32px; }
  .palc-dot { font-size: .55rem; }
  .palc-catalog { padding: 2.8rem 0; }
  .palc-heading { display: block; }
  .palc-heading > p { margin-top: .6rem; }
  .palc-controls { display: block; }
  .palc-search { display: block; max-width: none; }
  .palc-filters { margin-top: .9rem; }
  .palc-chip { flex: 1 1 auto; justify-content: center; }
  .palc-featured { padding: 1.25rem; }
  .palc-featured h3 { font-size: 2rem; }
  .palc-featured-head { align-items: start; }
  .palc-featured-icon { width: 54px; height: 54px; }
  .palc-stat strong { font-size: 1.65rem; }
  .palc-grid { grid-template-columns: 1fr; }
  .palc-card { min-height: 278px; }
  .palc-title { gap: .3rem; font-size: 1.6rem; }
  .palc-title span { gap: .3rem; }
  .palc-flow { padding: 2.8rem 0; }
  .palc-cta { display: block; padding: 1.35rem; }
  .palc-mark { display: none; }
}
@media (max-width: 370px) {
  .palc-hero h1 { font-size: 2.4rem; }
  .palc-crumbs { font-size: .72rem; }
  .palc-evidence-row { grid-template-columns: 1fr; }
  .palc-stat + .palc-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}
@media (prefers-reduced-motion: reduce) {
  .palc-button, .palc-card { transition: none; }
}
