/* /articles index. Colors come from prepsprint.css tokens, so dark mode follows automatically. */
.pa-list { display: grid; gap: 14px; padding-block: 40px 64px; }
.pa-list a { display: block; padding: 22px; border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-card, white); text-decoration: none; transition: border-color 0.15s ease; }
.pa-list a:hover, .pa-list a:focus-visible { border-color: var(--ps-primary); }
.pa-list span { color: var(--ps-muted); font-size: 12px; }
.pa-list strong { display: block; margin: 4px 0 6px; color: var(--ps-ink); font-size: 1.1rem; }
.pa-list p { margin: 0; color: var(--ps-muted); line-height: 1.55; }

/* Site header + footer on article pages, which don't load prepsprint.css.
   Rules below mirror prepsprint.css so the chrome matches every other page. */
.pa-chrome .pdv-site-header { --ink: #012f1f; --card: #ffffff; --green: #107a37; --hairline: #dfe7e0; --glass: rgba(252, 252, 252, 0.94); font-family: Montserrat, system-ui, sans-serif; line-height: 1.5; }
.pa-chrome [id] { scroll-margin-top: 84px; }
.pa-chrome nav.toc { top: 88px; max-height: calc(100vh - 108px); }
.pa-chrome .ps-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.pa-chrome .ps-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; }
.pa-chrome .ps-brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #107a37; color: white; font-size: 13.5px; font-weight: 800; letter-spacing: -.03em; flex-shrink: 0; }
.pa-chrome .ps-footer { margin-top: 56px; padding: 64px 0 32px; border-top: 1px solid #0a4a31; background: #012f1f; color: #b9cfc2; font-family: Montserrat, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.pa-chrome .ps-footer a { color: #b9cfc2; text-decoration: none; }
.pa-chrome .ps-footer a:hover { color: white; }
.pa-chrome .ps-footer p { max-width: 520px; margin: 14px 0 0; color: #b9cfc2; font-size: 14px; }
.pa-chrome .ps-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 48px; }
.pa-chrome .ps-footer nav { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.pa-chrome .ps-footer nav h2 { margin: 0 0 6px; color: white; font-family: "DM Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.15; }
.pa-chrome .ps-footer nav a { font-size: 14px; font-weight: 500; }
.pa-chrome .ps-footer-brand { color: white !important; }
.pa-chrome .ps-footer-support a { color: #7fd79b !important; font-weight: 700; }
.pa-chrome .ps-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }
@media (max-width: 680px) {
  .pa-chrome .ps-shell { width: min(100% - 24px, 1160px); }
  .pa-chrome .ps-footer { padding: 36px 0 28px; }
  .pa-chrome .ps-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pa-chrome .ps-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 34px; }
}

/* Green-theme nav details on article pages (they don't load theme-green.css). */
.pa-chrome .pdv-logo span:last-child { font-family: "DM Sans", system-ui, sans-serif; font-weight: 500; }
.pa-chrome .pdv-logo-mark { background: #107a37; box-shadow: none; }
.pa-chrome .pdv-nav-prep { padding: 8px 18px; white-space: nowrap; border-radius: 999px; background: #107a37; color: #fff !important; }
.pa-chrome .pdv-nav-prep:hover { background: #0c6630; }

/* ---- Library promotions (build-articles.js: modulesSection / inlinePromo) ----
   Colours come from --pm-* tokens: the /articles index maps them to the theme's
   --ps-* variables; article pages (no theme-green.css) set them below. */
.pa-promo, .pa-chrome .ps-paid-guide-cta, .pa-chrome .ps-module-card, .pa-rail {
  --pm-card: var(--ps-card, #fff); --pm-soft: var(--ps-soft, #f4f7f4); --pm-line: var(--ps-line, #dfe7e0);
  --pm-ink: var(--ps-ink, #012f1f); --pm-muted: var(--ps-muted, #5f6f67); --pm-green: var(--ps-primary, #107a37);
  --pm-fill: #107a37; --pm-fill-hover: #0c6630;
}
.pa-chrome .pa-promo, .pa-chrome .ps-paid-guide-cta, .pa-chrome .ps-module-card, .pa-rail {
  --pm-card: #ffffff; --pm-soft: #f4f7f4; --pm-line: #dfe7e0; --pm-ink: #012f1f; --pm-muted: #5f6f67; --pm-green: #107a37;
  font-family: Montserrat, system-ui, sans-serif;
}
:root[data-theme="dark"] .pa-chrome :is(.pa-promo, .ps-paid-guide-cta, .ps-module-card, .pa-rail) {
  --pm-card: #0f2a1e; --pm-soft: #0b1f16; --pm-line: #1c3a2c; --pm-ink: #eef6f0; --pm-muted: #a9bdb1; --pm-green: #5bd083;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pa-chrome :is(.pa-promo, .ps-paid-guide-cta, .ps-module-card, .pa-rail) {
    --pm-card: #0f2a1e; --pm-soft: #0b1f16; --pm-line: #1c3a2c; --pm-ink: #eef6f0; --pm-muted: #a9bdb1; --pm-green: #5bd083;
  }
}

.pa-promo { margin: 56px 0 24px; padding: 28px; border: 1px solid var(--pm-line); border-radius: 16px; background: var(--pm-soft); }
.pa-promo-kicker { margin: 0 0 6px; color: var(--pm-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pa-promo h2 { margin: 0 0 20px; color: var(--pm-ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; border: 0; padding: 0; }
.pa-mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pa-mod { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--pm-line); border-radius: 12px; background: var(--pm-card); color: var(--pm-ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.pa-mod:hover, .pa-mod:focus-visible { border-color: var(--pm-green); transform: translateY(-2px); }
.pa-mod-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--pm-soft); color: var(--pm-green); font-size: 11px; font-weight: 700; }
.pa-mod strong { color: var(--pm-ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.pa-mod p { flex: 1; margin: 0; color: var(--pm-muted); font-size: 13px; line-height: 1.5; }
.pa-mod-cta { color: var(--pm-green); font-size: 13px; font-weight: 700; }
.pa-complete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 14px; padding: 18px 22px; border-radius: 12px; background: #012f1f; color: #fcfcfc; text-decoration: none; }
.pa-complete:hover, .pa-complete:focus-visible { background: #0a4a31; }
.pa-complete strong { display: block; font-family: "DM Sans", system-ui, sans-serif; font-size: 1.1rem; font-weight: 500; }
.pa-complete small { display: block; margin-top: 2px; color: #b9cfc2; font-size: 13px; }
.pa-complete-price { padding: 10px 20px; border-radius: 999px; background: #107a37; color: #fff; font-weight: 700; white-space: nowrap; }

@media (max-width: 680px) {
  .pa-promo { padding: 20px 16px; }
  .pa-complete-price { width: 100%; text-align: center; }
}
/* Site header on article pages in dark mode (the header colours above are the light set). */
:root[data-theme="dark"] .pa-chrome .pdv-site-header { --ink: #eef6f0; --body: #cfdcd4; --card: #0f2a1e; --soft: #0b1f16; --hairline: #1c3a2c; --glass: rgba(6, 20, 14, 0.92); }

/* ---- PrepSprint-style promos on article pages (module-promos.js markup; mirrors prepsprint.css) ---- */
.pa-chrome .ps-eyebrow { display: inline-flex; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--pm-soft); color: var(--pm-green); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pa-chrome .ps-paid-guide-cta { margin: 36px 0; padding: 24px; border: 1px solid var(--pm-line); border-left: 4px solid var(--pm-green); border-radius: 12px; background: var(--pm-card); }
.pa-chrome .ps-paid-guide-cta h2 { margin: 4px 0 10px; padding: 0; border: 0; color: var(--pm-ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.pa-chrome .ps-paid-guide-cta p:not(.ps-eyebrow) { margin: 0 0 16px; color: var(--pm-muted); font-size: .95rem; line-height: 1.55; }
.pa-chrome .ps-paid-guide-cta .ps-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--pm-fill); color: #fff; font-family: Montserrat, system-ui, sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; }
.pa-chrome .ps-paid-guide-cta .ps-button:hover { background: var(--pm-fill-hover); }
.pa-chrome .ps-module-card { display: block; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--pm-line); border-radius: 12px; background: var(--pm-card); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pa-chrome .ps-module-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1, 47, 31, .12); }
.pa-chrome .ps-module-card:focus-visible { outline: 3px solid var(--pm-green); outline-offset: 2px; }
.pa-chrome .ps-module-card img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.pa-chrome .ps-module-card-caption { display: block; padding: 10px 12px 12px; font-family: Montserrat, system-ui, sans-serif; }
.pa-chrome .ps-module-eyebrow { display: block; color: var(--pm-green); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pa-chrome .ps-module-desc { display: block; margin-top: 3px; color: var(--pm-muted); font-size: 12.5px; line-height: 1.4; }
.pa-chrome .ps-module-card-mobile { max-width: 320px; margin: -16px 0 36px; }

/* Right rail: shown only where the article's own two columns leave room for a third. */
.pa-rail { display: none; }
.pa-rail .ps-sticky-card { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 20px; border: 1px solid var(--pm-line); border-radius: 16px; background: var(--pm-soft); font-family: Montserrat, system-ui, sans-serif; }
.pa-rail .ps-sticky-card > a:not(.ps-module-card) { display: block; margin-top: 10px; color: var(--pm-green); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.pa-rail .ps-sticky-card > a:not(.ps-module-card):hover { text-decoration: underline; }
@media (min-width: 1300px) {
  .pa-chrome .wrap { max-width: 1340px; grid-template-columns: 230px minmax(0, 1fr) 240px; }
  .pa-rail { display: block; }
  .pa-chrome .ps-module-card-mobile { display: none; }
}
