/* PAL course test directory — visual match for the course-specific handoff. */
.pal-course-page .palt {
  --ink: #172a33;
  --green: #28543a;
  --maroon: #7a1f1b;
  --gold: #b58a4f;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.52;
}
.palt h1, .palt h2, .palt h3, .palt p { margin-top: 0; }
.palt a { color: inherit; }
.palt a:focus-visible, .palt button:focus-visible, .palt input:focus-visible { outline: 3px solid var(--maroon); outline-offset: 4px; border-radius: 3px; }
.palt [hidden] { display: none !important; }
.palt-wrap { width: min(100% - 3.5rem, 1220px); margin-inline: auto; }

.palt-hero { position: relative; overflow: hidden; padding: 1.45rem 0 4.6rem; border-bottom: 1px solid #eacdb1; }
.palt-hero:before { content: ""; position: absolute; width: 620px; height: 520px; top: -9rem; right: -10rem; pointer-events: none; background: radial-gradient(circle, rgba(241,208,176,.32), transparent 70%); }
.palt-crumbs { display: flex; align-items: center; gap: .6rem; color: #71675f; font: .8rem Arial, Helvetica, sans-serif; }
.palt-crumbs a { color: var(--green); text-decoration: none; }
.palt-crumbs a:hover { text-decoration: underline; }
.palt-crumbs span[aria-hidden] { color: #ad8861; }
.palt-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); align-items: center; gap: clamp(2rem,4.5vw,5.6rem); margin-top: 2.65rem; }
.palt-eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.35rem; color: #78522e; font: bold .76rem Arial, Helvetica, sans-serif; letter-spacing: .1em; }
.palt-badge { display: inline-block; flex: none; padding: .35rem .5rem; border-radius: 4px; background: #89623d; color: #fff8ee; letter-spacing: .035em; }
.palt-hero h1 { max-width: 670px; margin: 0 0 1.2rem; color: var(--maroon); font-size: clamp(3.05rem,5vw,4.2rem); line-height: 1.03; letter-spacing: -.046em; font-weight: 500; }
.palt-hero h1 em { color: var(--green); font-style: normal; }
.palt-copy > p { max-width: 620px; margin: 0; color: #26383a; font-size: 1.18rem; line-height: 1.55; }
.palt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.7rem; }
.palt-link { color: var(--green) !important; font-weight: bold; text-decoration: none !important; border-bottom: 1px solid currentColor; }
.palt-link:hover { color: var(--maroon) !important; }
.palt-facts { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; margin-top: 2.3rem; padding-top: 1.15rem; border-top: 1px solid #dfc6ae; color: #525652; font: .89rem Arial, Helvetica, sans-serif; }
.palt-facts span { display: inline-flex; align-items: baseline; gap: .35rem; }
.palt-facts b { color: var(--maroon); font: 1.3rem Georgia, serif; }

.palt-path { position: relative; overflow: hidden; padding: 1.7rem 2rem 1.55rem; border: 1px solid #dec09e; border-radius: 15px; background: linear-gradient(145deg, #fffaf3, #f9eada); box-shadow: 0 16px 31px rgba(96,55,27,.13); }
.palt-path:before { content: ""; position: absolute; inset: -95px -110px auto auto; width: 310px; height: 270px; background: radial-gradient(circle, rgba(226,179,128,.22), transparent 72%); pointer-events: none; }
.palt-path-top { position: relative; display: flex; align-items: center; gap: .7rem; color: #77532e; font: bold .71rem Arial, Helvetica, sans-serif; letter-spacing: .1em; }
.palt-mono { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; color: var(--maroon); font: bold .83rem Georgia, serif; letter-spacing: -.03em; }
.palt-path h2 { position: relative; max-width: 430px; margin: 1.1rem 0 1.15rem; color: var(--ink); font-size: clamp(1.55rem,2.35vw,2rem); font-weight: 500; line-height: 1.17; }
.palt-path ol { position: relative; margin: 0; padding: 0; list-style: none; }
.palt-path li { display: flex; align-items: center; gap: .83rem; min-height: 48px; border-bottom: 1px solid #ead7c1; color: #25363a; font-size: 1.06rem; }
.palt-path li:last-child { border-bottom: 0; color: var(--green); }
.palt-num { flex: 0 0 31px; display: grid; place-items: center; height: 31px; border: 1px solid #dfc3a7; border-radius: 50%; background: #fff7eb; color: var(--maroon); font: bold .72rem Arial, Helvetica, sans-serif; }
.palt-path li:last-child .palt-num { border-color: var(--green); background: var(--green); color: #fff; }
.palt-path > p { position: relative; margin: 1.1rem 0 0; color: #58605c; font-size: .92rem; }

.palt-chapters { padding: 4rem 0 4.2rem; }
.palt-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; margin-bottom: 1.6rem; }
.palt-overline { display: inline-block; margin-bottom: .42rem; color: #895e37; font: bold .76rem Arial, Helvetica, sans-serif; letter-spacing: .12em; }
.palt-heading h2 { margin: 0; color: var(--ink); font-size: clamp(2rem,3.2vw,2.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.palt-heading > p { max-width: 430px; margin: 0 0 .15rem; color: #4c5858; font-size: 1rem; }
.palt-band { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 155px; margin-bottom: 1rem; padding: 1.55rem 2rem; overflow: hidden; border: 1px solid #44684c; border-radius: 12px; background: linear-gradient(115deg,#244b33,#1e3e2d); box-shadow: 0 8px 18px rgba(51,73,47,.14); color: #fff8ed; }
.palt-band:after { content: ""; position: absolute; width: 330px; height: 330px; right: 11%; top: -150px; border: 1px solid rgba(255,244,218,.14); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,244,218,.035), 0 0 0 70px rgba(255,244,218,.025); pointer-events: none; }
.palt-band > div { position: relative; z-index: 1; }
.palt-band .palt-kicker { color: #dfbf8b; font: bold .73rem Arial, Helvetica, sans-serif; letter-spacing: .11em; }
.palt-band h3 { margin: .3rem 0 .1rem; font-size: clamp(1.55rem,2.55vw,2.15rem); font-weight: 500; line-height: 1.14; color: #fff8ed; }
.palt-band p { margin: .3rem 0 0; color: #e8e7da; font-size: .96rem; }
.palt-seal { position: relative; z-index: 1; flex: 0 0 66px; display: grid; place-items: center; width: 66px; height: 66px; margin-left: 1rem; border: 4px double #d3bb8f; border-radius: 50%; color: #f9e5c9; font-size: 1.5rem; font-weight: bold; letter-spacing: -.09em; }
.palt-chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.palt-chapter { display: flex; flex-direction: column; min-height: 348px; padding: 1.5rem 1.6rem 1.4rem; border: 1px solid #e6c8a9; border-radius: 11px; background: linear-gradient(150deg,rgba(255,251,245,.98),rgba(255,245,234,.91)); box-shadow: 0 7px 14px rgba(105,63,34,.1); }
.palt-chapter-top { display: flex; align-items: start; justify-content: space-between; gap: .9rem; }
.palt-chapter-icon { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #efd7bf; border-radius: 12px; background: #fff4e7; }
.palt-chapter-icon svg { width: 65px; height: 65px; }
.palt-count-pill { margin-top: .2rem; padding: .35rem .55rem; border-radius: 5px; background: #f3e8d8; color: #77512d; font: bold .72rem Arial, Helvetica, sans-serif; letter-spacing: .07em; white-space: nowrap; }
.palt-chapter h3 { margin: .9rem 0 .45rem; color: var(--ink); font-size: clamp(1.5rem,2.2vw,1.93rem); line-height: 1.15; }
.palt-chapter > p { max-width: 480px; margin: 0; color: #3d4b4e; font-size: .98rem; line-height: 1.46; }
.palt-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.palt-tags span { padding: .3rem .53rem; border: 1px solid #e6d2bb; border-radius: 5px; background: #fffcf8; color: #48534c; font: .76rem Arial, Helvetica, sans-serif; }
.palt-chapter-cta { display: inline-flex; align-items: center; gap: .5rem; align-self: start; margin-top: auto; padding-top: 1.25rem; color: var(--maroon) !important; font-weight: bold; text-decoration: none !important; }
.palt-chapter-cta:hover { color: var(--green) !important; text-decoration: underline !important; text-underline-offset: .25em; }

.palt-chapters,
.palt-catalog { scroll-margin-top: 1.25rem; }
.palt-catalog { padding: 3.8rem 0 4rem; border-top: 1px solid #e7cdb3; background: #fbead8; }
.palt-controls { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid #e8cbb0; border-radius: 10px; background: #fffaf3; box-shadow: 0 5px 12px rgba(90,54,31,.08); }
.palt-search { flex: 1 1 285px; max-width: 400px; color: #303e42; font: bold .8rem Arial, Helvetica, sans-serif; }
.palt-search-wrap { position: relative; display: block; margin-top: .42rem; }
.palt-search-wrap svg { position: absolute; width: 20px; height: 20px; top: 50%; left: .85rem; transform: translateY(-50%); fill: none; stroke: #79604e; stroke-width: 1.8; stroke-linecap: round; }
.palt-search-wrap input { width: 100%; min-height: 44px; padding: .64rem .8rem .64rem 2.65rem; border: 1px solid #d7c1ad; border-radius: 7px; background: #fffdf9; color: var(--ink); font: 1rem Arial, Helvetica, sans-serif; }
.palt-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.palt-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .7rem; border: 1px solid #ddc6ab; border-radius: 6px; background: #fff9ef; color: #374845; font: bold .82rem Arial, Helvetica, sans-serif; cursor: pointer; }
.palt-chip span { color: #7e5d3c; font-size: .75rem; }
.palt-chip:hover { border-color: var(--green); }
.palt-chip.is-active { border-color: var(--green); background: var(--green); color: #fff; }
.palt-chip.is-active span { color: #f1dfc4; }
.palt-total { margin: 1.15rem 0 .85rem; color: #596264; font: .87rem Arial, Helvetica, sans-serif; }
.palt-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.palt-tile { display: flex; flex-direction: column; min-height: 128px; padding: .88rem 1rem .8rem; border: 1px solid #e5c8a9; border-radius: 8px; background: #fffbf5; box-shadow: 0 4px 9px rgba(95,57,28,.06); text-decoration: none !important; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.palt-tile:hover { transform: translateY(-2px); border-color: #ae8460; box-shadow: 0 8px 15px rgba(95,57,28,.11); color: inherit; }
.palt-tile small { color: #875c37; font: bold .7rem Arial, Helvetica, sans-serif; letter-spacing: .08em; }
.palt-tile strong { display: block; margin: .33rem 0 .6rem; color: var(--ink); font-size: 1.12rem; font-weight: bold; line-height: 1.2; }
.palt-open { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; color: var(--green); font: bold .78rem Arial, Helvetica, sans-serif; }
.palt-open span { font-size: 1.1rem; font-weight: normal; }
.palt-empty { padding: 2rem; border: 1px dashed #c8a47d; border-radius: 9px; background: #fffaf3; text-align: center; color: #485651; }
.palt-note { margin: 1.3rem 0 0; color: #555d58; font-size: .93rem; }
.palt-bottom { padding: 3.7rem 0 2.7rem; }
.palt-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 238px; padding: 2rem 2.3rem; background: radial-gradient(ellipse at 85% 100%, rgba(225,183,142,.47), transparent 60%), #fff3e5; border: 1px solid #dfba96; border-radius: 12px; box-shadow: 0 8px 20px rgba(94,57,32,.13); overflow: hidden; }
.palt-cta .palt-overline { color: var(--maroon); letter-spacing: .115em; }
.palt-cta h2 { max-width: 610px; margin: 0 0 .32rem; color: var(--ink); font-size: clamp(1.65rem,3vw,2.35rem); font-weight: 500; line-height: 1.13; }
.palt-cta p { max-width: 570px; margin: 0 0 .8rem; color: #3e4b4d; }

@media (max-width: 1080px) {
  .palt-grid { gap: 2rem; }
  .palt-hero h1 { font-size: clamp(2.7rem,4.7vw,3.7rem); }
  .palt-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .palt-wrap { width: min(100% - 2rem, 680px); }
  .palt-grid { grid-template-columns: 1fr; }
  .palt-hero { padding-bottom: 3rem; }
  .palt-path { max-width: 680px; }
  .palt-heading { align-items: start; }
}
@media (max-width: 700px) {
  .palt-chapter-grid { grid-template-columns: 1fr; }
  .palt-heading { display: block; }
  .palt-heading > p { margin-top: .65rem; }
  .palt-controls { display: block; }
  .palt-search { display: block; max-width: none; }
  .palt-filters { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .palt-hero { padding: 1rem 0 2.65rem; }
  .palt-grid { gap: 1.7rem; margin-top: 2rem; }
  .palt-hero h1 { font-size: clamp(2.45rem,9vw,3.4rem); }
  .palt-copy > p { font-size: 1.05rem; }
  .palt-facts { gap: .7rem 1rem; margin-top: 1.6rem; }
  .palt-path { padding: 1.35rem 1.15rem; }
  .palt-chapters, .palt-catalog { padding-block: 2.8rem; }
  .palt-band { min-height: 140px; padding: 1.3rem; }
  .palt-seal { flex-basis: 48px; width: 48px; height: 48px; font-size: 1.13rem; }
  .palt-chapter { min-height: 0; padding: 1.15rem; }
  .palt-chapter h3 { font-size: 1.5rem; }
  .palt-directory { grid-template-columns: 1fr; }
  .palt-tile { min-height: 112px; }
  .palt-chip { font-size: .78rem; }
  .palt-bottom { padding-top: 2.6rem; }
  .palt-stair { display: none; }
}
@media (max-width: 360px) {
  .palt-hero h1 { font-size: 2.35rem; }
  .palt-band p { font-size: .84rem; }
  .palt-seal { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .palt-tile { transition: none; }
}
