/* Ready-made blocks: only what assets/style.css does not already have, in the site's own colours (the custom
   properties in style.css :root). Every new class here starts with blk-. */

/* A heading (and a line under it) above a block's content */
.blk-head { max-width: 760px; margin-bottom: 28px; }
.blk-head h2 { margin-bottom: .4em; }
.blk-head p:last-child { margin-bottom: 0; }

/* Columns from the section's data-cols (2, 3 or 4); 2 columns at 960 px and below, 1 at 600 px (a gallery stays at 2) */
.blk-grid { --cols: 3; display: grid; gap: 24px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
[data-cols="2"] .blk-grid { --cols: 2; }
[data-cols="3"] .blk-grid { --cols: 3; }
[data-cols="4"] .blk-grid { --cols: 4; }
@media (max-width: 960px) { .blk-grid, [data-cols] .blk-grid { --cols: 2; } }
@media (max-width: 600px) { .blk-grid:not(.blk-gallery), [data-cols] .blk-grid:not(.blk-gallery) { --cols: 1; } }
[data-cols="4"] .blk-grid .card { padding: 22px; }

/* Text with a picture on one side (data-side="left" or "right"); stacked below 760 px */
.blk-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
[data-side="right"] .blk-pic { order: 2; }
.blk-pic img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.blk-text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .blk-side { grid-template-columns: minmax(0, 1fr); } [data-side="right"] .blk-pic { order: 0; } }

/* Steps: numbered panels, 4 across, 2 at 900 px, 1 at 520 px */
.blk-steps { list-style: none; margin: 0; padding: 0; counter-reset: blk-step; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blk-steps li { counter-increment: blk-step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.blk-steps li::before { content: counter(blk-step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px; border: 2px solid var(--gold); border-radius: 50%; color: var(--accent); font: 700 1.1rem/1 var(--font-display); }
.blk-steps li p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .blk-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .blk-steps { grid-template-columns: minmax(0, 1fr); } }

/* Gallery */
.blk-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }

/* Call to action, on the dark strip: a gold button that shows on the dark panel */
.blk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.blk-cta h2 { margin-bottom: .4em; }
.blk-cta p:last-child, .blk-cta .actions { margin: 0; }
.blk-cta .btn-primary { background: var(--primary-fg); color: var(--primary-bg); border-color: var(--primary-fg); }
.blk-cta .btn-primary:hover { background: var(--bg-2); color: var(--primary-bg); }
.blk-cta .btn-primary:focus-visible { outline-color: var(--primary-fg); }

/* Questions and answers */
.blk-faq { border-top: 1px solid var(--line); }
.blk-faq details { border-bottom: 1px solid var(--line); }
.blk-faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); line-height: 1.3; color: var(--fg); }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; color: var(--accent); }
.blk-faq details[open] summary::after { content: "\2212"; }
.blk-faq details p { margin: 0 0 18px; }

/* Contact form */
.blk-form { max-width: 760px; }
.blk-form h2 { font-size: 1.4rem; }
.blk-note { margin: 16px 0 0; }

/* People: a picture, a name and a role */
.blk-portrait { margin-bottom: 16px; }
.blk-portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.blk-person h3 { margin-bottom: .3em; }
.blk-role { margin: 0; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .blk-portrait { max-width: 320px; } }

/* A row of logos */
.eyebrow .gap { text-transform: none; letter-spacing: normal; }
.blk-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.blk-logos img { display: block; height: 64px; width: auto; max-width: 160px; object-fit: contain; }

/* A table (scrolls inside its own box on a narrow screen) */
.blk-table { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.blk-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.blk-table th, .blk-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 12em; }
.blk-table th { font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); background: var(--panel-2); }
.blk-table th .gap { text-transform: none; letter-spacing: normal; }
.blk-table tbody tr:last-child td { border-bottom: 0; }
