/* Styles for pages rendered by _src/generate.py from the live site's content */

/* Article + rich text */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row .tag { text-decoration: none; }
.tag-row .tag:hover { background: var(--pink-soft); }
.article-meta { margin-top: 20px; font-size: 15px; color: var(--muted); }
.article-meta a { color: var(--ink); }
.article-hero { margin: 0 0 32px; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--burgundy); }
.figure { margin: 1.4em 0; }
.figure img { width: 100%; height: auto; }
.figure .inline-logo, .prose .inline-logo { width: auto; max-width: 180px; max-height: 56px; border-radius: 0; }
.article-aside { display: flex; flex-direction: column; gap: 16px; }
.article-aside .toc { position: sticky; top: 24px; }
.aside-cta { padding: 24px; }
.author-box { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box a { color: var(--ink); }

/* Cards in listings */
.card-ph { display: block; aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--pink-tint), var(--light)); }
.listing .case .desc { font-size: 15px; color: var(--body); }
.load-more { margin-top: 32px; display: flex; justify-content: center; }
.load-more .btn[hidden] { display: none; }
.filter-empty { margin-top: 24px; }
.filter-empty[hidden] { display: none; }

/* Case study */
.facts { padding: 24px; position: sticky; top: 24px; }
.fact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fact-list li { background: var(--pink-tint); color: var(--burgundy); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; }
.facts .link-arrow { margin-top: 12px; }

/* People */
.person-hero { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.person-photo { flex: 0 0 240px; max-width: 100%; }
.person-photo img, .person-photo .card-ph { width: 240px; height: 240px; max-width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--light); aspect-ratio: 1; }
.person-hero > div:last-child { flex: 1 1 360px; min-width: 0; }
.person-hero .fact-list { margin-top: 18px; }
.person-hero .btn-row { margin-top: 24px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr)); gap: 12px; }
.person-card { display: flex; flex-direction: column; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.person-card:hover { border-color: var(--burgundy); color: var(--ink); }
.person-card img, .person-card .card-ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--light); }
.person-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.person-card .title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.person-card .meta { font-size: 14px; color: var(--muted); }

/* Jobs */
.job-facts { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.job-facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.job-facts dd { margin: 4px 0 0; font-weight: 600; }

/* Generic section pages: the intro (and the heading block above it) runs the full width of the
   section; on wide screens it flows into two columns so lines stay readable. */
.section-intro { max-width: none; }
.section-intro p { max-width: none; }
.section-head:has(+ .section-intro) > div { max-width: none; }
.section-head:has(+ .section-intro) .section-sub { max-width: none; }
@media (min-width: 1100px) {
  .section-intro:has(> :nth-child(2)) { columns: 2; column-gap: clamp(40px, 4vw, 80px); }
  .section-intro > :is(h2, h3, h4, ul, ol, table, figure, blockquote) { break-inside: avoid; }
  .section-intro > :first-child { margin-top: 0; }
}
.gen-split > :first-child { flex: 1 1 340px; align-self: flex-start; align-items: flex-start; position: sticky; top: 24px; }
@media (max-width: 860px) { .gen-split > :first-child { position: static; } }
.gen-split > :last-child { flex: 1.4 1 480px; }
.gen-grid { align-items: stretch; }
.gen-card { min-height: 0; }
.gen-card .card-img { width: calc(100% + 56px); max-width: none; margin: -32px -28px 8px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.gen-card .card-logo { max-height: 40px; max-width: 160px; width: auto; object-fit: contain; object-position: left; }
.gen-card .cap-body { color: var(--body); font-size: 15px; }
.gen-card .cap-body > * + * { margin-top: 8px; }
.gen-card .cap-body ul, .gen-card ul { margin: 0; padding-left: 1.1em; color: var(--body); font-size: 15px; }
.gen-card .cap-body p { margin: 0; }
.gen-card .cap-body .link-arrow { min-height: 36px; }
.grid-4.gen-grid .gen-card { padding: 22px; }
.grid-4.gen-grid .gen-card .card-img { width: calc(100% + 44px); margin: -22px -22px 8px; }
.grid-4.gen-grid .cap-name { font-size: 20px; }
.page-hero .lead + .lead { margin-top: 12px; }
