.Opportunities-Intro {
  max-width: 80%;
  margin: clamp(12px, 2vw, 20px) auto;
  text-align: center;
  font-family: 'Roboto';
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.5;
}

.Page-Heading{
    margin-top: 0px;
    background-color: var(--scout-purple);
    padding: clamp(20px, 5vw, 36px) 20px;
}

.Page-Heading h1 {
    color: white;
    text-align: center;
    font-size: clamp(26px, 6vw, 40px);
    margin: 0;
}

/* ===== Visual Separator ===== */
.Opp-Separator {
  width: 100%;
  text-align: center;
  margin: clamp(30px, 5vw, 50px) auto clamp(20px, 3vw, 30px) auto;
  position: relative;
  max-width: 80%;
}

.Opp-Separator span {
  font-family: 'Roboto';
  font-weight: bold;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--scout-purple);
  background: white;
  padding: 0 clamp(12px, 2vw, 20px);
  position: relative;
  z-index: 2;
}

.Opp-Separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--scout-purple);
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   CARD GRID
════════════════════════════════════════════════════════════════ */
.vopp-list {
    max-width: 80%;
    margin: 0 auto clamp(20px, 3vw, 30px);
}
.vopp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.vopp-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.vopp-card {
    appearance: none; -webkit-appearance: none;
    margin: 0; padding: 0; width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    border: 1.5px solid transparent;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    display: flex; flex-direction: column;
    transition: border-color .15s, box-shadow .15s, transform .12s;
    font: inherit;
    font-family: 'Roboto', sans-serif;
}
.vopp-card:hover {
    border-color: var(--scout-purple);
    box-shadow: 0 6px 24px rgba(116,19,220,.12);
    transform: translateY(-2px);
}
.vopp-card-accent { height: 4px; flex-shrink: 0; }
.vopp-card-accent.area-beavers  { background: var(--scout-beaver-blue); }
.vopp-card-accent.area-cubs     { background: var(--scout-cub-green); }
.vopp-card-accent.area-scouts   { background: var(--scout-scout-green); }
.vopp-card-accent.area-trustees { background: #f59e0b; }

.vopp-card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vopp-card-area {
    display: inline-block; align-self: flex-start;
    font-size: 11px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.vopp-card-area.area-beavers  { background: #dbeafe; color: #1d4ed8; }
.vopp-card-area.area-cubs     { background: #dcfce7; color: #166534; }
.vopp-card-area.area-scouts   { background: #ede9fe; color: #5b21b6; }
.vopp-card-area.area-trustees { background: #fef3c7; color: #92400e; }
.vopp-card-title {
    font-size: 17px; font-weight: 800; color: #111827; margin: 0; line-height: 1.3;
}
.vopp-card-commitment {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: #6b7280; margin-top: auto; padding-top: 4px;
}

/* ════════════════════════════════════════════════════════════════
   DETAIL MODAL
════════════════════════════════════════════════════════════════ */
.vopp-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(17,24,39,.55);
    z-index: 1000; align-items: center; justify-content: center; padding: 16px;
}
.vopp-modal-overlay.open { display: flex; }
.vopp-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3);
    font-family: 'Roboto', sans-serif;
}
.vopp-modal-hdr {
    padding: clamp(22px, 4vw, 30px) clamp(22px, 4vw, 30px) 0;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.vopp-modal-close {
    width: 30px; height: 30px; border-radius: 7px; border: none; flex-shrink: 0;
    background: #f3f4f6; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.vopp-modal-title h2 { font-size: 22px; font-weight: 900; color: #111827; margin: 6px 0 0; }
.vopp-modal-body { padding: 16px clamp(22px, 4vw, 30px) clamp(22px, 4vw, 30px); }
.vopp-modal-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #374151; font-weight: 600;
    padding: 10px 0; border-bottom: 1px solid #f3f4f6;
}
.vopp-modal-section { margin-top: 16px; }
.vopp-modal-section h3 {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: #9ca3af; margin: 0 0 6px;
}
.vopp-modal-section p {
    font-size: 14px; color: #374151; line-height: 1.6; margin: 0;
    white-space: pre-line;
}
/* Formatted (Markdown) role text — see js/markdown.js */
.vopp-md { font-size: 14px; color: #374151; line-height: 1.6; overflow-wrap: anywhere; }
.vopp-md > :first-child { margin-top: 0; }
.vopp-md > :last-child  { margin-bottom: 0; }
.vopp-md p  { margin: 0 0 10px; white-space: normal; }
.vopp-md h4 { font-size: 15px; font-weight: 800; color: #111827; margin: 14px 0 6px; }
.vopp-md ul, .vopp-md ol { margin: 0 0 10px; padding-left: 22px; }
.vopp-md li { margin: 3px 0; }
.vopp-md li::marker { color: var(--scout-purple); }
.vopp-md strong { font-weight: 800; color: #111827; }
.vopp-md a { color: var(--scout-purple); font-weight: 600; text-decoration: underline; }
.vopp-commitment-md { flex: 1; min-width: 0; font-weight: 600; }
.vopp-commitment-md p { margin-bottom: 4px; }
.vopp-card-commitment a { pointer-events: none; color: inherit; }
.vopp-modal-row svg { align-self: flex-start; margin-top: 3px; }

.vopp-modal-disclaimer {
    font-size: 12px; color: #9ca3af; line-height: 1.5; margin-top: 20px;
}
.vopp-modal-disclaimer a { color: var(--scout-purple); font-weight: 600; }
.vopp-modal-cta {
    display: block; width: 100%; box-sizing: border-box; text-align: center;
    margin-top: 14px; padding: 14px; border-radius: 10px;
    background: var(--scout-purple); color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 800; transition: background .15s, transform .1s;
}
.vopp-modal-cta:hover { background: var(--scout-purple-light); transform: translateY(-1px); }

/* =============================
   Tablet  (≤ 768px)
============================= */

@media (max-width: 768px) {

  .Opportunities-Intro {
    max-width: 92%;
    font-size: clamp(16px, 3.5vw, 20px);
  }

  .vopp-list {
    max-width: 92%;
  }

  .Opp-Separator {
    max-width: 92%;
  }

  .Opp-Separator span {
    font-size: clamp(20px, 4vw, 26px);
  }
}

/* =============================
   Mobile  (≤ 480px)
============================= */

@media (max-width: 480px) {

  .Opportunities-Intro {
    max-width: 100%;
    padding: 0 16px;
    font-size: 16px;
  }

  .vopp-list {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto 24px;
  }
  .vopp-grid { grid-template-columns: 1fr; }

  .Opp-Separator {
    max-width: 100%;
    padding: 0 16px;
  }

  .Opp-Separator span {
    font-size: 20px;
  }

  /* Modal slides up from bottom on phone */
  .vopp-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .vopp-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }
}

/* ════════════════════════════════════════════════════════════════
   REGISTER INTEREST → ELIGIBILITY REQUIREMENTS STEP
════════════════════════════════════════════════════════════════ */
button.vopp-modal-cta { border: none; font-family: inherit; cursor: pointer; }
.vopp-modal-cta:disabled,
.vopp-modal-cta:disabled:hover {
    background: #d1d5db; color: #6b7280; cursor: not-allowed; transform: none;
}

.vreq-overlay { z-index: 1100; }            /* above the role modal */
.vreq-modal { max-width: 560px; }
.vreq-role:empty { display: none; }

.vreq-scroll {
    max-height: min(42vh, 340px); overflow-y: auto;
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    padding: 16px 18px; background: #fafafa;
    font-size: 14px; color: #374151; line-height: 1.6;
}
.vreq-scroll:focus-visible { outline: 2px solid var(--scout-purple); outline-offset: 2px; }
.vreq-scroll p { margin: 0 0 10px; }
.vreq-scroll a { color: var(--scout-purple); font-weight: 600; }
.vreq-list { list-style: none; margin: 4px 0 14px; padding: 0; }
.vreq-list li {
    position: relative; padding: 8px 0 8px 32px;
    border-bottom: 1px solid #f0f0f0;
}
.vreq-list li:last-child { border-bottom: none; }
.vreq-list li::before {             /* green tick */
    content: ''; position: absolute; left: 0; top: 9px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.vreq-list li.vreq-plus::before { background-color: var(--scout-purple); }
.vreq-note {
    font-size: 13px; color: #4b5563; background: #f5f3ff;
    border-radius: 8px; padding: 10px 12px; margin: 0 !important;
}

.vreq-scroll-hint {
    font-size: 13px; font-weight: 700; color: #92400e;
    background: #fef3c7; border-radius: 8px; padding: 8px 12px; margin: 10px 0 0;
}
.vreq-scroll-hint[hidden] { display: none; }

.vreq-declaration {
    border: 1.5px solid #e5e7eb; border-radius: 12px;
    margin: 14px 0 0; padding: 10px 14px 6px;
    transition: opacity .2s;
}
.vreq-declaration:disabled { opacity: .5; }
.vreq-declaration legend {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: #6b7280; padding: 0 6px;
}
.vreq-check {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 14px; color: #111827; line-height: 1.45; cursor: pointer;
}
.vreq-declaration:disabled .vreq-check { cursor: not-allowed; }
.vreq-check input {
    width: 20px; height: 20px; flex-shrink: 0; margin: 0;
    accent-color: var(--scout-purple); cursor: inherit;
}
