/* build.css — what tools/buildlib.py emits beyond the html-kit's classes: the page rhythm (lead intro + the section that
   follows it), the mega menu groups, and component variants (the jump menu, filter bar, pagination and downloads rules
   moved to the kit's components.css in 1.6.80, so drawn builds have them too) a plan asks for (a stage tracker, paper rows, a colour-coded records accordion). No styling of
   the library itself: the restyle (ui.css) comes later. */
.banner__sub { margin: 0; }
.post-card__link { display: block; }
.post-card__title { display: block; color: inherit; text-decoration: none; }   /* the title's link reads as the heading; the UI sheet gives it its hover */
.post-card__title:hover h3, .post-card__title:focus-visible h3 { color: var(--c-primary); }
.post-card__category a, .post-list__content > .label a { color: inherit; }   /* a category term links to its listing; it keeps the label's colour */
.callout-half__media { flex: 1 1 0; min-width: 0; width: auto; max-width: var(--w-6col); height: auto; aspect-ratio: 1 / 1; }   /* the photo and the panel share the row at every width above 1024 (a fixed 580px spilled between 1025 and 1400) */
.comparison-simple__value a { word-break: break-word; }
.team-card .ph-image { width: 120px; height: 120px; flex: 0 0 auto; }
.team-card p { margin: 0; }
.ph-map { position: relative; }
.banner--quicknav .tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.accordion__panel > p + p, .accordion__panel > div > p + p { margin-top: 12px; }
/* logos: the link sits inside the kit's .ph-logo box (the row's flex sizing is on the box) */
.ph-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; padding: 8px; box-sizing: border-box; }
.ph-logo .logo-link { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.logo-grid__row .ph-logo:has(img) { background: #fff; border: 1px solid var(--c-light); }
/* Blog News (2): later rows keep the intro column empty so the cards line up under the first row's */
.grid-row > .intro--narrow, .grid-row > .intro--spacer { flex: 0 0 var(--w-4col); }
/* rhythm: an intro that leads the section under it, and the section that follows it */
.section--lead { padding-bottom: 0; }
.section--follow { padding-top: var(--space-md); }
/* timeline: four blocks across the container; a stage tracker lights the current one */
.timeline-h--4 .timeline-h__block { flex: 1 1 0; min-width: 0; }
.timeline-h--tracker .timeline-h__block:not(.is-current) { opacity: .45; }
.timeline-h--tracker .is-current .timeline-h__year { color: var(--c-primary); }
.timeline-h--tracker .is-current .timeline-h__connector::after { background: var(--c-primary); }
/* paper rows (Comparison Chart/Simple as a publications list): the citation takes the width, the year a narrow column */
.comparison-simple--papers { max-width: var(--container); }
.comparison-simple--papers .comparison-simple__label { flex: 0 0 var(--w-2col); }
.comparison-simple--papers .comparison-simple__value { flex: 1 1 0; min-width: 0; }
/* records accordion (Jobs Accordion as a list of records): a group rail and dot, a status chip; set --study per data-group in the project */
.accordion--studies .accordion__item { --study: #9AA7AD; box-shadow: inset 4px 0 0 var(--study); padding-left: 16px; }
.accordion--studies .accordion__bar-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.accordion--studies .accordion__bar-title h4 { margin: 0; }
.accordion--studies .study-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--study); flex: 0 0 auto; }
.accordion--studies .tag--status { color: #fff; background: #6b7a82; }
.accordion--studies .accordion__panel { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.accordion--studies .accordion__panel .label { margin: 0; }

/* ---- Shawn's rulings of 2026-10-16 (Sacred Heart, James Bird, Broadmoor build reviews; kit 1.6.82) */
/* Two sections on the same background keep one section's padding between them (buildlib Page.tighten). */
.section--same-bg { padding-top: 0 !important; }
/* Self-padded components inside a padded section take no padding of their own (they sat inside double the space). */
.section > .image-block, .section > .intro-split, .section > .two-col-block, .section > .contact-block { padding-block: 0; }
/* An intro over a grid sits at the grid's left edge, not centred over it. */
.grid-section > .intro { align-self: flex-start; text-align: left; align-items: flex-start; }
.grid-section > .intro .actions, .grid-section > .intro > .btn { align-self: flex-start; }
/* Rows that do not fill start at the left edge, under the row above (a short query, a lone card, fewer than four icons). */
.grid-row:has(> .post-card), .grid-row:has(> .featured--4col), .grid-row:has(> .icon-above), .grid-row:has(> .icon-left) { justify-content: flex-start; }
.grid-row:has(> .location-card--6col:only-child) { justify-content: flex-start; width: var(--container); max-width: 100%; }
/* An accordion under its own heading in one section; the mosaic under its heading. */
.section > .intro + .accordion { margin-top: var(--space-sm); }
.intro + .mosaic { margin-top: var(--space-sm); }
/* A horizontal timeline that a plan puts inside a section (steps with a button under them) takes the section's padding once. */
.section > .timeline-h { padding-inline: 0; max-width: var(--container); width: 100%; margin-top: var(--space-sm); }
.section > .timeline-h .timeline-h__block { flex: 1 1 0; min-width: 0; }
.steps__actions { margin-top: var(--space-sm); align-self: flex-start; }
@media (max-width: 640px) { .section > .timeline-h { flex-direction: column; gap: 24px; } .section > .timeline-h::before, .section > .timeline-h .timeline-h__connector { display: none; } }
/* Image Background cards over a real photo: a scrim under the text so the title, line and link read (the kit's card is drawn on a light placeholder). */
.featured:has(.ph-image--fill img)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); pointer-events: none; }
.featured:has(.ph-image--fill img) .featured__content, .featured:has(.ph-image--fill img) .featured__content .label { color: #fff; position: relative; z-index: 1; }
.featured:has(.ph-image--fill img) .link-more { color: #fff; border-color: #fff; }
.featured:has(.ph-image--fill img) .link-more .icon { fill: currentColor; color: #fff; }
.ph-image > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Link List - Cards: the whole card is the link (it follows its arrow), without the icon spot; labelled groups. */
.link-card { position: relative; }
.link-card__arrow::after { content: ""; position: absolute; inset: 0; }
.link-card:hover .link-card__arrow { color: var(--c-primary); }
.link-list-cards__list .link-card { grid-template-columns: minmax(0, 1fr) auto; }
.link-card__body h3, .link-card__body p { margin: 0; }
.link-card__body p { margin-top: 4px; }
.link-list-cards__label { margin-top: var(--space-sm); }
.link-list-cards__label:first-child { margin-top: 0; }
/* Records shown as highlight rows: the title, then the record's one line. */
.highlights li > a { font-weight: 600; }
.highlights__line { display: block; font-weight: 400; margin-top: 2px; }
.intro-split__aside > .label + .highlights { margin-bottom: var(--space-sm); }
/* The location card's map, the links callout's line, the author box's photo and links. */
.location-card--6col .ph-map { width: 100%; height: 300px; overflow: hidden; }
.location-card--6col .ph-map > img { width: 100%; height: 100%; object-fit: cover; }
.location-card > .btn { align-self: flex-start; }
.callout--links .callout__main p { margin: 0; max-width: 480px; }
.author-slug .author-slug__photo { width: 120px; height: 120px; flex: 0 0 auto; }
.author-slug__content .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; }
/* Fullwidth 2 Col List Grid rows with room between them. */
.list-grid { gap: var(--space-md); }
.list-grid__body { display: flex; flex-direction: column; gap: 12px; }
.list-grid__body p { margin: 0; }
/* Long words (an e-mail address, a reference) wrap instead of running out of their card. */
.highlights li { overflow-wrap: anywhere; }
/* 2 Col Posts rows as records: the photo link holds the photo, the content stacks, the excerpt clamps. */
.post-list__item > .post-list__media { flex: 0 0 180px; display: block; }
.post-list__item > .post-list__media .ph-image { width: 180px; height: 180px; }
.post-list__content { padding-block: 0; padding-right: 0; gap: 6px; }
.post-list__content h3, .post-list__content p { margin: 0; }
.post-list__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid-row:has(> .post-list) { align-items: flex-start; justify-content: flex-start; }
.grid-row > .post-list { flex: 1 1 0; min-width: 0; }
.grid-row > .intro--narrow + .post-list { flex: 1 1 0; width: auto; min-width: 0; }

.icon--fa { width: auto; height: auto; font-size: var(--icon-size); line-height: 1; display: inline-flex; align-items: center; justify-content: center; fill: none; stroke: none; }   /* a Font Awesome glyph (buildlib.FA) sized like the sprite icon it stands in for */
.ph-icon .icon--fa { font-size: calc(var(--icon-lg, 40px)); }
