/* Public & Impact (careers-public-impact.html), warm theme: Chapter IV of the botanical career
   handbook, with italic headings, a framed directory, and warm paper. An olive branch
   sits in the directory's right margin.
   assets/js/public-impact-hub.js adds html.pi-hub and
   rearranges the built page; every rule here is scoped to it (or to this page's body), so other
   pages and the classic theme are untouched. [data-palette] lets these rules outrank the palette's. */

html[data-theme="warm"][data-palette].pi-hub {
  --pi-brass: var(--color-ornament, #A68B5A);
  --pi-rule: var(--line-soft, #C8BBA3);
  --pi-green: var(--color-primary, #20382F);
  --pi-ink: var(--color-text, #252D28);
  --pi-muted: var(--color-text-muted, #655F54);
}

/* ---------- Paper: the kit's grain and a soft vignette (as on Consulting) ---------- */
html[data-theme="warm"] body[data-page="careers-public-impact"] {
  background: var(--surface-page) url("../img/consulting/kit/warm_paper_tile_1024.png") repeat;
}
html[data-theme="warm"] body[data-page="careers-public-impact"]::before,
html[data-theme="warm"] body[data-page="careers-public-impact"]::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
html[data-theme="warm"] body[data-page="careers-public-impact"]::before {
  background: url("../img/consulting/kit/warm_paper_tile_1024.png") repeat;
  filter: grayscale(1) brightness(.54) contrast(6); mix-blend-mode: overlay; opacity: .4;
}
html[data-theme="warm"] body[data-page="careers-public-impact"]::after {
  background: radial-gradient(ellipse at 50% 46%, rgba(252, 244, 228, .55) 0%, rgba(252, 244, 228, 0) 40%, rgba(225, 160, 50, 0) 44%, rgba(225, 160, 50, .16) 100%);
}
html[data-theme="warm"] body[data-page="careers-public-impact"] main > .hero { background: transparent; }

/* ---------- 2. Section headings: italic, a brass line to the column's right edge ---------- */
html[data-theme="warm"][data-palette].pi-hub main section h2:not(.visually-hidden) {
  display: flex; align-items: center; gap: var(--space-5);
  margin: 0 0 6px; max-width: none;
  font: italic 500 2.1rem/1.15 var(--font-head); letter-spacing: 0; color: var(--pi-ink);
  text-align: left; text-wrap: balance;
}
html[data-theme="warm"][data-palette].pi-hub main section h2:not(.visually-hidden)::after {
  content: ""; flex: 1 1 2rem; min-width: 2rem; border-top: 1px solid var(--pi-brass);
}
html[data-theme="warm"][data-palette].pi-hub .playbill-heading { max-width: none; margin: 0; text-align: left; }
html[data-theme="warm"][data-palette].pi-hub .playbill-heading__rule,
html[data-theme="warm"][data-palette].pi-hub .playbill-heading .ornament-divider-wrap { display: none; }
html[data-theme="warm"][data-palette].pi-hub .playbill-heading__title { margin-block: 0; }

/* ---------- 3. The main areas: tight under the opener ---------- */
html[data-theme="warm"][data-palette].pi-hub #lanes { padding-top: 36px; padding-bottom: var(--space-10); background: transparent; overflow-x: clip; }
html[data-theme="warm"][data-palette].pi-hub .pi-lanes { position: relative; }
/* "Which one is which?": a plain paragraph, Consulting's measure */
html[data-theme="warm"][data-palette].pi-hub .pi-lede {
  max-width: 46rem; margin: 1rem 0 0;
  font-size: .95rem; line-height: 1.45; color: var(--pi-ink);
}
html[data-theme="warm"][data-palette].pi-hub .pi-olive-branch { display: none; }

/* ---------- 5. Compare the pathways: the Finance and Consulting table treatment ----------
   A static, semantic table (careers-*.html); each cell is a short phrase from that guide's "At a
   glance". Below 40rem the shared warm rules stack each row as a labelled block. */
html[data-theme="warm"][data-palette].pi-hub {
  --pi-t-head: #E0D6BF; --pi-t-body: #EEE5D3; --pi-t-border: #CDC4B0; --pi-t-rule: #DCD3C0; --pi-t-note: #6B6254;
}
html[data-theme="warm"][data-palette].pi-hub main > .path-compare { padding-top: var(--space-4); padding-bottom: var(--space-8); background: transparent; }
html[data-theme="warm"][data-palette].pi-hub .compare-note { max-width: 46rem; margin: 0 0 14px; font-size: .84rem; line-height: 1.45; color: var(--pi-t-note); }
html[data-theme="warm"][data-palette].pi-hub .path-compare .warm-compare { margin-top: 0; }
html[data-theme="warm"][data-palette].pi-hub .path-compare th[scope="row"] { font: 600 1.15rem/1.2 var(--font-head); }
html[data-theme="warm"][data-palette].pi-hub .path-compare th[scope="row"] a { color: var(--pi-green); text-decoration-line: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 40rem) {
  html[data-theme="warm"][data-palette].pi-hub .path-compare .warm-compare__scroll {
    overflow-x: auto; background: var(--pi-t-body); border: 1px solid var(--pi-t-border); border-radius: 6px; box-shadow: none;
  }
  html[data-theme="warm"][data-palette].pi-hub .path-compare table { table-layout: fixed; width: 100%; min-width: 56rem; font-size: 14px; color: #271F12; }
  html[data-theme="warm"][data-palette].pi-hub .path-compare thead th:nth-child(1) { width: 15%; }
  html[data-theme="warm"][data-palette].pi-hub .path-compare th,
  html[data-theme="warm"][data-palette].pi-hub .path-compare td {
    padding: 15px 16px; vertical-align: top; line-height: 1.35;
    border-bottom: 1px solid var(--pi-t-rule); border-right: 1px solid var(--pi-t-rule);
  }
  html[data-theme="warm"][data-palette].pi-hub .path-compare tr > :last-child { border-right: 0; }
  html[data-theme="warm"][data-palette].pi-hub .path-compare tbody tr:last-child > * { border-bottom: 0; }
  html[data-theme="warm"][data-palette].pi-hub .path-compare thead th {
    padding: 14px 16px; vertical-align: middle; background: var(--pi-t-head); color: #1F1910;
    font: 700 12.75px/1.35 var(--font-body); letter-spacing: .12em; text-transform: uppercase; font-variant: normal;
  }
  html[data-theme="warm"][data-palette].pi-hub .path-compare tbody th[scope="row"],
  html[data-theme="warm"][data-palette].pi-hub .path-compare tbody td { background: var(--pi-t-body); }
}

/* ---------- 6. Recruiting tips: headed paragraphs in an open grid (Consulting's "Recruiting from
   Grinnell, Iowa" treatment), no cards; rendered by site.js from SITE_DATA.chapterGuidance ---------- */
html[data-theme="warm"][data-palette].pi-hub main > :is(.path-tips, .path-orgs) { padding-top: var(--space-8); padding-bottom: var(--space-8); background: transparent; border-top: 1px solid var(--pi-rule); }
html[data-theme="warm"][data-palette].pi-hub main > :is(.path-tips, .path-orgs) .eyebrow { margin: 0 0 4px; }
html[data-theme="warm"][data-palette].pi-hub main > :is(.path-tips, .path-orgs) .section-intro {
  max-width: 46rem; margin: 0 0 var(--space-5); text-align: left; font-size: .95rem; line-height: 1.5; color: var(--pi-muted);
}
html[data-theme="warm"][data-palette].pi-hub .ptip-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px;
  border-top: 1px solid var(--pi-brass);
}
html[data-theme="warm"][data-palette].pi-hub .ptip { padding: 18px 0 20px; border-bottom: 1px solid var(--pi-rule); }
html[data-theme="warm"][data-palette].pi-hub .ptip > h3 { margin: 0 0 6px; font: 600 1.25rem/1.25 var(--font-head); color: var(--pi-green); text-wrap: balance; }
html[data-theme="warm"][data-palette].pi-hub .ptip > p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--pi-ink); }
html[data-theme="warm"][data-palette].pi-hub .ptip > .ptip__action { margin-top: 8px; color: var(--pi-ink); }
html[data-theme="warm"][data-palette].pi-hub .ptip__action > strong { color: var(--pi-green); }

/* ---------- 7. Organizations to research: filter chips, a count, and open rows (Consulting's
   "Target firms to research" family) ---------- */
html[data-theme="warm"][data-palette].pi-hub .org-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
html[data-theme="warm"][data-palette].pi-hub .org-filter .chip { min-height: 2.5rem; }
html[data-theme="warm"][data-palette].pi-hub .org-filter .chip:focus-visible { outline: 2px solid var(--pi-green); outline-offset: 2px; }
html[data-theme="warm"][data-palette].pi-hub .chip__n { font-weight: 400; opacity: .8; }
html[data-theme="warm"][data-palette].pi-hub .org-count { margin: 0 0 12px; font-size: .84rem; color: var(--pi-muted); }
html[data-theme="warm"][data-palette].pi-hub .org-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
  margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pi-brass);
}
html[data-theme="warm"][data-palette].pi-hub .org { padding: 16px 0 18px; border-bottom: 1px solid var(--pi-rule); }
html[data-theme="warm"][data-palette].pi-hub .org[hidden] { display: none; }
html[data-theme="warm"][data-palette].pi-hub .org__name { margin: 0 0 4px; font: 600 1.25rem/1.25 var(--font-head); color: var(--pi-green); }
html[data-theme="warm"][data-palette].pi-hub .org__desc { margin: 0 0 8px; font-size: .92rem; line-height: 1.5; color: var(--pi-ink); }
html[data-theme="warm"][data-palette].pi-hub .org__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; font-size: .9rem; font-weight: 600; }
html[data-theme="warm"][data-palette].pi-hub .org__meta { margin: 0; font-size: .84rem; line-height: 1.45; }
html[data-theme="warm"][data-palette].pi-hub .org__meta > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 12px; padding: 3px 0; }
html[data-theme="warm"][data-palette].pi-hub .org__meta dt { font: 700 .68rem/1.6 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pi-muted); }
html[data-theme="warm"][data-palette].pi-hub .org__meta dd { margin: 0; color: var(--pi-ink); }
@media (max-width: 74.999rem) {
  html[data-theme="warm"][data-palette].pi-hub .ptip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.999rem) {
  html[data-theme="warm"][data-palette].pi-hub .ptip-grid,
  html[data-theme="warm"][data-palette].pi-hub .org-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 29.999rem) {
  html[data-theme="warm"][data-palette].pi-hub .org__meta > div { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 4px 0; }
}

html[data-theme="warm"][data-palette].pi-hub #lanes .see-all { margin-top: 20px; }

/* ---------- 6. Sources ---------- */
html[data-theme="warm"][data-palette].pi-hub main > .sources { padding-top: var(--space-10); background: transparent; }

/* Verify markers and placeholders: each kept as one box; a long one wraps inside its box */
html[data-theme="warm"][data-palette].pi-hub main .badge-verify { display: inline-block; max-width: 100%; white-space: normal; }

/* ---------- 7. Responsive ---------- */
@media (min-width: 64rem) {
  html[data-theme="warm"][data-palette].pi-hub .pi-lanes {
    --pi-olive-width: clamp(235px, 23vw, 332px);
    --pi-margin: max(var(--gutter, 3rem), (100vw - 76rem) / 2);
    --pi-olive-room: max(1.5rem, .56 * var(--pi-olive-width) + 16px - var(--pi-margin));
  }
  html[data-theme="warm"][data-palette].pi-hub .pi-lanes .career-directory {
    margin-inline-end: var(--pi-olive-room);
  }
  /* Normalize the illustration's warm paper to white so multiply lets the site paper show through. */
  html[data-theme="warm"][data-palette].pi-hub .pi-olive-branch {
    position: absolute;
    z-index: 1;
    display: block;
    width: var(--pi-olive-width);
    height: auto;
    max-width: none;
    top: calc(-.13 * var(--pi-olive-width));
    left: calc(100% - var(--gutter, 3rem) - var(--pi-olive-room) - .42 * var(--pi-olive-width));
    clip-path: inset(3% 2.8% 21% 39%);
    filter: url("../img/public-impact/olive-paper-filter.svg#paper-white");
    mix-blend-mode: multiply;
    pointer-events: none;
  }
}
@media (max-width: 39.999rem) {
  /* headings wrap on a phone: the brass line runs under them instead of beside them */
  html[data-theme="warm"][data-palette].pi-hub main section h2:not(.visually-hidden) { display: block; font-size: 1.85rem; }
  html[data-theme="warm"][data-palette].pi-hub main section h2:not(.visually-hidden)::after { display: block; margin-top: var(--space-3); }
}
