/* Berkeley Holiday Fund - shingle-blocks.css
   The "blocks" layer. Loaded after shingle.css in the "blocks" theme only.
   Sand donate buttons, full-width teal heroes on interior pages, and
   colour-blocked steps on Home and How it works. */

:root {
  --sand: #E9C98F;
  --sand-dark: #DDB56E;
  --sand-edge: #A9823F;
  --terracotta: #A5522E;
  --shingles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M-12 0a12 12 0 0 0 24 0a12 12 0 0 0 24 0a12 12 0 0 0 24 0M0 14a12 12 0 0 0 24 0a12 12 0 0 0 24 0' fill='none' stroke='rgba(0,0,0,0.16)' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* ---------- Donate buttons: sand with ink text ----------
   The darker sand edge keeps the button's shape visible on white. */
.btn--give {
  background: var(--sand);
  border-color: var(--sand-edge);
  color: var(--ink);
}

.btn--give:hover {
  background: var(--sand-dark);
  border-color: var(--sand-edge);
  color: var(--ink);
}

.section--ink .ledger__leader {
  border-bottom-color: var(--sand);
}

/* ---------- Interior page heroes: full-width teal block ----------
   Background runs edge to edge; padding keeps text aligned with the
   sections below. */
.hero {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
  background-color: var(--stamp);
  background-image: var(--shingles);
  background-size: 48px 28px;
  color: #fff;
}

.hero h1,
.hero-photo__copy h1 {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 {
  color: #fff;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.92);
}

.hero .btn--quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn--quiet:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.hero a:focus-visible,
.hero-photo a:focus-visible {
  outline-color: var(--sand);
}

.hero--tight {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

/* ---------- Colour-blocked steps (Home and How it works) ----------
   Only lists marked steps--blocks change; the IRA steps on Donate keep
   the plain style. */
.steps--blocks {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

@media (min-width: 40rem) {
  .steps--blocks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps--blocks > li,
.steps--blocks > li:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: none;
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.1rem) clamp(1.1rem, 3vw, 1.6rem);
  color: var(--ink);
}

.steps--blocks > li:nth-child(1) { background: var(--check); }
.steps--blocks > li:nth-child(2) { background: var(--terracotta); color: #fff; }
.steps--blocks > li:nth-child(3) { background: var(--sand); }

.steps--blocks > li::before,
.steps--blocks h3,
.steps--blocks p {
  color: inherit;
}

.steps--blocks h3 {
  font-weight: 800;
}

.steps--blocks p {
  opacity: 0.9;
}

/* 25% larger than the 2.75rem these started at */
.steps--blocks [data-icon] {
  width: 3.4375rem;
  height: 3.4375rem;
}

.steps--blocks [data-icon] path {
  stroke: currentColor;
}
