/* Shared project-page design. Figures retain their original aspect ratios. */
.project-page a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.project-page .wrap { width: min(1080px, calc(100% - 48px)); }
.project-header { padding: 32px 0 30px; }
.project-kicker { margin: 0 0 14px; color: #945b20; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.project-kicker span { padding: 0 9px; color: var(--line); }
.project-header > .project-kicker { font-size: 13px; }
.project-header h1 { max-width: none; margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4.2vw, 48px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.project-authors { margin: 0 0 4px; font-size: 16px; line-height: 1.7; }
.project-authors strong { font-weight: 600; }
.project-affiliations { margin: 0; color: var(--muted); font-size: 13px; }
.project-resources { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 23px; }
.project-resources .button { gap: 12px; padding: 10px 16px; }
.resource-link { display: inline-flex; gap: 9px; align-items: center; padding: 10px 0; font-size: 13px; font-weight: 600; }
.resource-link:hover { color: #945b20; }
.project-overview { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 42px; padding: 30px 0; border-top: 1px solid var(--line); }
.project-page figure { margin: 0; min-width: 0; }
.project-page figure img { display: block; width: 100%; height: auto; }
.project-page figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.overview-copy .project-kicker { margin-bottom: 10px; }
.overview-copy h2 { margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.overview-copy > p:not(.project-kicker) { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.7; }
.recovered-parameters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 20px 0 0; }
.recovered-parameters div { padding-top: 10px; border-top: 1px solid var(--line); }
.recovered-parameters dt { font-size: 13px; font-weight: 600; }
.recovered-parameters dd { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 42px; padding: 32px 0; border-top: 1px solid var(--line); }
.section-label > span { color: #945b20; font-size: 11px; letter-spacing: .1em; }
.section-label h2 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.project-prose { max-width: 800px; color: #4b5563; font-size: 15px; line-height: 1.8; }
.project-prose p { margin: 0 0 16px; }
.project-prose p:last-child { margin-bottom: 0; }
.project-footer { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .project-page .wrap { width: min(100% - 32px, 620px); }
  .project-header { padding-top: 26px; }
  .project-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
  .section-label { display: flex; align-items: baseline; gap: 12px; }
  .section-label h2 { margin-top: 0; }
  .project-resources { gap: 8px 20px; }
  .project-footer { display: flex; }
}

.project-visual { padding: 28px 0; border-top: 1px solid var(--line); }
.resource-note { color: var(--muted); font-size: 13px; }

.project-header h1.long-title { font-size: clamp(32px, 3.6vw, 44px); }

.project-benefits { margin: 0; padding-left: 22px; }
.project-benefits li { padding-left: 5px; margin-bottom: 16px; }
.project-benefits li:last-child { margin-bottom: 0; }
.project-prose strong { color: var(--ink); font-weight: 600; }
.project-gallery { display: grid; gap: 30px; min-width: 0; }
.project-video-card { display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--ink); color: #fff; }
.project-video-card:hover { color: #fff; background: #253044; }
.play-icon { display: flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #9ca3af; border-radius: 50%; font-size: 17px; }
.project-video-card strong { display: block; font-size: 17px; font-weight: 600; }
.video-description { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: #d1d5db; }

.project-inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.project-inline-link:hover { color: #945b20; text-decoration-color: currentColor; }

.sl-heading { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.sl-comparison { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sl-comparison img { aspect-ratio: 1.18; object-fit: contain; }
.sl-comparison figcaption { color: var(--ink); font-size: 12px; font-weight: 600; }
.sl-caption,.sl-section-intro { margin: 18px 0 0; color: #4b5563; font-size: 14px; line-height: 1.8; }
.sl-section-intro { margin: 0 0 20px; }
.sl-patterns,.sl-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sl-patterns img { aspect-ratio: 1.3; object-fit: contain; }
.sl-pattern-notes { margin-top: 22px; color: #4b5563; font-size: 14px; line-height: 1.8; }
.sl-gallery { display: grid; gap: 34px; min-width: 0; }
.sl-gallery section + section { padding-top: 26px; border-top: 1px solid var(--line); }
.sl-gallery h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.sl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; }
.sl-pair img { aspect-ratio: 1; object-fit: contain; }
.sl-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sl-examples img { aspect-ratio: 1.15; object-fit: contain; }
.sl-lamp { max-width: 360px; }
@media (max-width: 800px) {
  .sl-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .sl-comparison figure:first-child { grid-column: 1 / -1; max-width: 280px; justify-self: center; }
  .sl-simple { grid-template-columns: minmax(0, 1fr); }
  .sl-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}

.project-wide-heading { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.project-lead { margin: 0 0 24px; color: #4b5563; font-size: 14px; line-height: 1.8; }
.project-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 800px) {
  .project-comparison { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

.sampling-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sampling-methods section { min-width: 0; }
.sampling-methods h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: var(--ink); font-size: 18px; font-weight: 600; }
.sampling-methods h3 span { color: #945b20; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sampling-methods p { margin: 16px 0 0; color: #4b5563; font-size: 13px; line-height: 1.75; }
.sampling-methods strong { color: var(--ink); font-weight: 600; }
.sampling-result-note { margin: 20px 0 0; }
@media (max-width: 800px) {
  .sampling-methods { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sampling-methods section + section { padding-top: 24px; border-top: 1px solid var(--line); }
}

.project-page .project-equation img { width: auto; max-width: 100%; height: auto; }
.project-inline-equation { display: inline-block; width: auto; max-width: 100%; height: auto; vertical-align: middle; margin: 0 4px; }

.project-code { display: block; max-width: 100%; overflow-x: auto; margin: 0; padding: 20px; border: 1px solid var(--line); background: #eeeae2; color: var(--ink); font-family: Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre; tab-size: 4; }
