/* Option A: the site's look with the walls of text broken up. Classes are set on Bricks elements
   (Style > CSS classes). Colors come from the Bricks variables (--c-*). Gold only on black. */

/* Page head: sand band, title and lede on the left, a photo on the right */
.sa-phead { background: var(--c-sand); }
.sa-phead > .brxe-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.brxe-section.sa-phead { padding-block: 56px; }
.sa-phead.sa-plain > .brxe-container { grid-template-columns: 1fr; }
.sa-phead h1 { font-size: clamp(40px, 4.4vw, 60px); margin: 0; }
.sa-crumb { font-size: 14px; color: var(--c-muted); margin: 0 0 12px; }
.sa-crumb a { color: var(--c-muted); }
.sa-lede { font-size: 19px; color: var(--c-muted); margin: 16px 0 0; max-width: 52ch; }
.sa-photo img, img.sa-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; display: block; }
.sa-photo.sa-tall img, img.sa-photo.sa-tall { aspect-ratio: 4 / 3; }
/* Bricks lays the caption over the photo; ours sits under it, readable */
.brxe-image.sa-photo { display: block; }
.brxe-image.sa-photo figcaption, .sa-photo figcaption { position: static !important; inset: auto !important; transform: none !important; background: none !important; padding: 0 !important; margin-top: 8px; text-align: left; font-size: 13px; color: var(--c-muted); }
.sa-cap { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.sr-dark .sa-cap, .sr-dark .sa-photo figcaption { color: var(--c-on-dark); }

/* Bricks blocks stack their children; these rows lay out side by side */
.sa-acts, .sa-chips, .sa-head { flex-direction: row; }

/* Buttons as links */
.sa-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sa-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--c-ink); color: var(--c-paper) !important; font-weight: 700; text-decoration: none !important; transition: transform .15s ease; }
.sa-pill:hover { transform: translateY(-2px); }
.sa-pill.sa-gold { background: var(--c-gold); color: var(--c-ink) !important; }
.sa-pill.sa-light { background: var(--c-line); color: var(--c-ink) !important; }
.sa-pill.sa-paper { background: var(--c-paper); color: var(--c-ink) !important; box-shadow: inset 0 0 0 1px var(--c-line-strong); } /* second button on sand */
.sa-pill.sa-line { background: transparent; color: var(--c-paper) !important; box-shadow: inset 0 0 0 2px var(--c-paper); }

/* Sections */
.sa-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.sa-head > :first-child { flex: 1 1 auto; }
.sa-head > h2.brxe-heading { flex: none; } /* a heading beside buttons keeps one line */
.sa-head > .sa-acts { flex: 0 1 auto; margin-top: 0; }
.sa-head > .sracc-more { flex: none; white-space: nowrap; }
.sa-head h2 { margin: 0; }
.sa-head p { margin: 8px 0 0; color: var(--c-muted); }
.sr-dark .sa-head p { color: var(--c-on-dark); }

/* Numbers strip */
.sa-nums { background: var(--c-ink); color: var(--c-paper); }
.sa-nums.sa-sandnums { background: var(--c-sand); color: var(--c-ink); }
.sa-nums > .brxe-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.brxe-section.sa-nums { padding-block: 36px; }
.sa-num { margin: 0; }
.sa-num b { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.03em; color: var(--c-gold); }
.sa-sandnums .sa-num b { color: var(--c-ink); }
.sa-num span { display: block; margin-top: 6px; font-size: 15px; color: var(--c-on-dark); }
.sa-sandnums .sa-num span { color: var(--c-muted); }

/* Tiles: short blocks that replace long paragraphs */
/* Bricks blocks set align-items: flex-start; grids here stretch so every box in a row is the same height */
.sa-tiles, .sa-dues, .sa-steps { align-items: stretch; grid-auto-rows: 1fr; } /* and every row the same height */
.sa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sa-tiles + .sa-tiles { margin-top: 16px; }
.sa-dues + .sa-split { margin-top: 48px; }
.sa-tiles.sa-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-tiles.sa-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-tile { background: var(--c-sand); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.sr-sand .sa-tile, .sa-phead .sa-tile { background: var(--c-paper); }
.sr-dark .sa-tile { background: #232323; }
.sa-tile h3 { font-size: 20px; margin: 0; }
.sr-dark .sa-tile h3 { color: var(--c-gold); }
.sa-tile p { margin: 0; font-size: 15px; color: var(--c-muted); }
.sr-dark .sa-tile p { color: var(--c-on-dark); }
.sa-tile.sa-pic { padding: 0; overflow: hidden; }
.sa-tile.sa-pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.sa-tile.sa-pic .sa-in { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
/* a linked tile (sr-card) looks like the rest: same fill, no border */
.sa-tile.sr-card.brxe-block { background: var(--c-sand); border: 0; } /* beats Bricks' inline .sr-card.brxe-block */
.sr-sand .sa-tile.sr-card.brxe-block { background: var(--c-paper); }

/* Split: a photo beside short text */
.sa-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sa-split p { font-size: 18px; margin: 14px 0 0; max-width: 48ch; }
.sr-dark .sa-split p { color: var(--c-on-dark); }

/* The chamber's gold boxes, on black */
.sa-goldgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sa-goldbox { background: var(--c-gold); color: var(--c-ink); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.sa-goldbox h3 { margin: 0; font-size: 22px; color: var(--c-ink) !important; } /* the dark section's heading color would win otherwise */
.sa-goldbox p { margin: 0; font-size: 15px; color: var(--c-ink) !important; flex: 1; }
.sa-goldbox a { color: var(--c-ink) !important; font-weight: 700; }

/* Weather fact, with the chamber's gold wave above it */
.sa-weather { position: relative; background: var(--c-sand); }
.sa-weather::before { content: ""; display: block; height: 36px; background: var(--c-gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q15 0 30 18 T60 18 T90 18 T120 18 V36 H0Z'/%3E%3C/svg%3E") 0 0 / 120px 36px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q15 0 30 18 T60 18 T90 18 T120 18 V36 H0Z'/%3E%3C/svg%3E") 0 0 / 120px 36px repeat-x; }
.sa-weather > .brxe-container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.brxe-section.sa-weather { padding-top: 0; }
.sa-weather::before { margin: 0 calc(-1 * var(--gutter)) 40px; }
.sa-weather p { margin: 8px 0 0; font-size: 18px; }

/* Dues buttons and next steps (Join) */
.sa-dues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sa-due { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-radius: 16px; background: var(--c-paper); text-decoration: none !important; font-weight: 700; font-size: 17px; color: var(--c-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.sa-due::after { content: "\2192" / ""; color: var(--c-gold-text); }
.sa-due:hover { transform: scale(1.02); box-shadow: 0 10px 28px rgb(0 0 0 / .12); }
.sa-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Member logos strip */
.sa-logos .sracc-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }


/* Home hero: headline, search and chips beside the chamber's Main Street photo */
.sa-hero > .brxe-container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.sa-hero h1 { font-size: clamp(40px, 4.6vw, 64px); margin-bottom: 14px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sa-chips a { color: var(--c-paper) !important; text-decoration: none !important; font-size: 14px; font-weight: 600; padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; background: #2A2A2A; transition: background .15s ease; }
.sa-chips a:hover { background: #3A3A3A; }
.sa-hero .sa-photo img { aspect-ratio: 4 / 3; }
.sa-gold h2 { color: var(--c-paper); margin: 0 0 24px; }

@media (max-width: 900px) {
	.sa-hero > .brxe-container { grid-template-columns: 1fr; }
	.sa-phead > .brxe-container, .sa-split, .sa-weather > .brxe-container { grid-template-columns: 1fr; }
	.sa-nums > .brxe-container, .sa-goldgrid, .sa-tiles.sa-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-tiles, .sa-tiles.sa-two, .sa-dues, .sa-steps { grid-template-columns: 1fr; }
	.sa-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .sa-goldgrid, .sa-tiles.sa-four { grid-template-columns: 1fr; } }
