/* WordPress glue for the concept styles in site.css:
   block buttons, page content width, story lists, galleries, files. */

/* Page content: readable width, blocks can go wide or full. */
.entry { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry > .alignwide { width: min(100vw - 2 * var(--gutter), var(--wrap)); margin-inline: calc(50% - min(50vw - var(--gutter), var(--wrap) / 2)); }
.entry > .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.entry h2 { font-size: var(--step-3); margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry figure { margin: 1.5rem 0; }
.entry figcaption, .wp-element-caption { font-size: .95rem; color: var(--ink-faint); margin-top: .55rem; }
.home-main > .wp-block-group { margin: 0; }

/* Block groups that carry the concept's section classes get its inner width. */
/* Classic themes wrap every group's blocks in an inner container; let the concept's grids see the blocks directly. */
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Buttons: block styles that match .btn-* */
.wp-block-buttons.actions { gap: .75rem; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .7rem 1.35rem; border-radius: var(--radius-btn);
  font: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none;
  border: 2px solid transparent; background: var(--straw); color: var(--ink);
}
.wp-block-button .wp-block-button__link:hover { background: var(--glow); color: var(--ink); }
.wp-block-button.is-style-blue .wp-block-button__link { background: var(--blue); color: var(--white); }
.wp-block-button.is-style-blue .wp-block-button__link:hover { background: var(--blue-dark); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--white); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

/* Files (rules, minutes, safety cards): a big, plain download link. */
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 0; border-top: 1px solid #cfd5d8; margin: 0; }
.wp-block-file:last-of-type { border-bottom: 1px solid #cfd5d8; }
.wp-block-file a:not(.wp-block-file__button) { font-weight: 700; }
.wp-block-file .wp-block-file__button { background: var(--blue); color: var(--white); border-radius: var(--radius-btn); padding: .45rem 1rem; font-size: 1rem; text-decoration: none; }
.wp-block-file .wp-block-file__embed { display: none; }

/* Gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 4px; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); font-size: .95rem; }

/* Stories and featured artists */
.story-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2rem; }
.story-card img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.story-card h2 { font-size: var(--step-2); margin-bottom: .2rem; }
.story-card h2 a { color: var(--ink); text-decoration: none; }
.story-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.story-date { color: var(--ink-faint); font-size: 1rem; margin-bottom: .5rem; }
.nav-links { display: flex; gap: 1rem; margin-top: 2.5rem; font-size: 1.15rem; }
.back { margin-top: 2rem; font-weight: 700; }

/* Members-only notice and login */
.members-gate { background: var(--plate-2); border-left: 6px solid var(--straw); padding: 1.5rem; border-radius: 4px; }
.members-gate form p { max-width: none; }
.members-gate input[type="text"], .members-gate input[type="password"] { font: inherit; padding: .6rem .8rem; width: 100%; max-width: 22rem; border: 2px solid var(--ink-faint); border-radius: var(--radius-btn); }
.members-gate input[type="submit"] { font: inherit; font-weight: 700; min-height: 3.1rem; padding: .7rem 1.35rem; background: var(--straw); border: 0; border-radius: var(--radius-btn); cursor: pointer; }

/* Steps pattern: a list item's bold opening reads as its heading. */
.steps li > strong:first-child { display: block; font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; line-height: 1.05; margin-bottom: .3rem; color: inherit; }
.section-dark .steps li > strong:first-child { color: var(--white); }
.steps li { font-size: 1.05rem; }
