/* Ready-made blocks: only what assets/style.css does not already have. Every class here starts with blk-. */

/* 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: 20px; 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; } }

/* 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 { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.blk-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 760px) { .blk-side { grid-template-columns: minmax(0, 1fr); } [data-side="right"] .blk-pic { order: 0; } }

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

/* People: a picture, a name and a role */
.blk-person .portrait { margin-bottom: 16px; }
.blk-person h3 { margin-bottom: .2em; }
.blk-person .role { font-family: var(--heading); font-weight: 600; font-size: 1.1rem; letter-spacing: .05em; color: var(--secondary); margin: 0; }
@media (max-width: 600px) { .blk-person .portrait { max-width: 280px; } }

/* A row of logos */
.blk-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.blk-logos img { height: 64px; width: auto; max-width: 160px; object-fit: contain; }

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

/* Questions and answers */
.blk-faq { max-width: 70ch; 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 40px 18px 0; font-family: var(--heading); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--fg); }
.blk-faq summary::-webkit-details-marker { display: none; }
.blk-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--primary); }
.blk-faq details[open] summary::after { content: "\2212"; }
.blk-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.blk-faq details p { margin: 0 0 18px; }

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