/* blocks-catalogue - MASTER BUILDING BLOCK, page look (apps copy this file as it is). Uses the host page colour
   variables when it has them: --card, --line, --navy (accent), --ink, --muted, --ok; otherwise the fallbacks below. */
.blocks-head { padding: 24px 0 8px; }
.blocks-head h1 { font-weight: 800; font-size: clamp(28px, 6vw, 40px); }
.blocks-head .muted { font-size: 16px; margin: 8px 0 16px; max-width: 640px; }
.blocks-label { margin: 4px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted, #5b6575); text-transform: uppercase; letter-spacing: .04em; }

.blocks-list { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 760px) { .blocks-list { grid-template-columns: 1fr 1fr; align-items: start; } }

.block-card { background: var(--card, #fff); border: 1px solid var(--line, #d9dee7); border-radius: 12px; min-width: 0; }
.block-card[open] { border-color: var(--navy, #1f3a8a); box-shadow: 0 4px 16px rgba(1, 33, 105, .10); }
.block-card summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; gap: 4px; position: relative; padding-right: 40px; }
.block-card summary::-webkit-details-marker { display: none; }
.block-card summary::after { content: ''; position: absolute; right: 16px; top: 18px; width: 9px; height: 9px; border-right: 2.5px solid var(--navy, #1f3a8a); border-bottom: 2.5px solid var(--navy, #1f3a8a); transform: rotate(45deg); transition: transform .15s; }
.block-card[open] summary::after { transform: rotate(-135deg); top: 22px; }
.block-card summary:focus-visible { outline: 3px solid var(--navy, #1f3a8a); outline-offset: 2px; border-radius: 12px; }
.block-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.block-name { font-family: Archivo, system-ui, sans-serif; font-weight: 700; font-size: 17px; color: var(--navy, #1f3a8a); overflow-wrap: anywhere; }
.block-sum { color: var(--ink, #1a1f2b); font-size: 15px; overflow-wrap: anywhere; }
.block-meta { color: var(--muted, #5b6575); font-size: 13px; }

.block-status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.block-status-built { background: #E5F3EB; color: var(--ok, #1d7a46); }
.block-status-building { background: #FFF4D6; color: #7A5200; }
.block-status-planned { background: #ECEFF4; color: #3A4556; }

.block-facts { margin: 0; padding: 0 14px 14px; display: grid; gap: 8px; border-top: 1px solid var(--line, #d9dee7); padding-top: 12px; }
.block-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.block-facts dt { font-weight: 700; color: var(--navy, #1f3a8a); }
.block-facts dd { margin: 0; color: var(--ink, #1a1f2b); overflow-wrap: anywhere; }
@media (max-width: 400px) { .block-facts div { grid-template-columns: 1fr; gap: 0; } }

.blocks-ai { margin: 8px 0 24px; }

.block-from-maker { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: #EEF0FB; color: var(--navy, #1f3a8a); border: 1px solid var(--navy, #1f3a8a); }

/* makers' form (maker-form.js) - the host page styles inputs, buttons, .tick, .choices, .tick-grid and .tick-chip */
.mb-form { display: grid; gap: 12px; }
.mb-licence { flex-direction: column; }
.mb-form .tick { flex-direction: row; }
.mb-licence .choice span { justify-content: flex-start; text-align: left; padding: 8px 12px; }
.mb-mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mb-mine-h { margin-top: 18px; }
.mb-item .badge-refused { background: #FDECEC; color: #9B1C1C; }
/* "Get this block" link (page.getLink) */
.block-get { margin: 0; padding: 0 14px 14px; }
.block-get-link { display: inline-block; min-height: 44px; line-height: 24px; padding: 10px 16px; border-radius: 10px; background: var(--navy, #1f3a8a); color: #fff; font-weight: 700; text-decoration: none; }
.block-get-link:focus-visible { outline: 3px solid var(--navy, #1f3a8a); outline-offset: 2px; }
