/* ==========================================================================
   NCSWMC — base styles
   Palette pulled from the organization's logo:
   green  #066418   blue  #0506D2
   ========================================================================== */

:root{
  --green-900: #054d13;
  --green-700: #0a7a26;
  --green-600: #0e8f2e;
  --green-100: #e7f4ea;
  --blue-700:  #0506D2;
  --blue-600:  #2b2cef;
  --blue-100:  #e9e9fd;
  --ink:       #1a231d;
  --ink-soft:  #4b564e;
  --paper:     #ffffff;
  --bg:        #f5f8f5;
  --line:      #dfe6e0;
  --amber-100: #fff6df;
  --amber-700: #8a5a00;

  --green-glow: #0e8f2e;
  --blue-glow:  #2b2cef;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 4px rgba(15,35,20,.05), 0 12px 28px -14px rgba(15,35,20,.22);
  --shadow-lg: 0 8px 16px -6px rgba(15,35,20,.12), 0 30px 60px -24px rgba(15,35,20,.32);
  --container: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
/* overflow-x:hidden on BOTH html and body at once breaks position:sticky
   in some browsers (the two together create a confused scroll-container
   situation) -- html alone is enough to stop horizontal viewport scroll. */
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  touch-action: manipulation; /* kills the ~300ms tap delay on older mobile browsers */
}
body.nav-open{ overflow:hidden; } /* locks background scroll while the full-screen mobile nav is open */
img, video, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: break-word; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.18; color: var(--green-900); font-weight: 700; margin: 0 0 .5em; letter-spacing:-.01em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link{
  position:absolute; left:8px; top:-48px; background:var(--green-900); color:#fff;
  padding:10px 16px; border-radius: var(--radius-sm); z-index: 200; transition: top .15s ease;
}
.skip-link:focus{ top:8px; }

/* ---------- header ---------- */
.site-header{ background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top:0; z-index: 100; box-shadow: 0 1px 0 rgba(15,35,20,.02), 0 6px 16px -12px rgba(15,35,20,.15); }
.site-header__inner{ display:flex; align-items:center; gap:20px; padding: 14px 24px; flex-wrap: wrap; }
.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; color:inherit; margin-right:auto; min-width:0; }
.brand__logo{ width:52px; height:52px; object-fit:contain; flex:none; }
.brand__text{ display:flex; flex-direction:column; min-width:0; }
.brand__name{ font-family: var(--font-heading); font-weight:700; color: var(--green-900); font-size: 1.05rem; line-height:1.25; }
.brand__address{ font-size:.82rem; color: var(--ink-soft); }

@media (max-width:600px){
  .site-header__inner{ flex-wrap:nowrap; }
  .brand__logo{ width:40px; height:40px; }
  .brand__name{ font-size:.92rem; }
  .brand__address{ display:none; }
}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; border-radius: var(--radius-sm); border:1px solid var(--line);
  background:var(--paper); cursor:pointer;
}
.nav-toggle__bar{ width:20px; height:2px; background: var(--green-900); margin:0 auto; }

.primary-nav ul{ display:flex; gap: 4px; list-style:none; margin:0; padding:0; flex-wrap:wrap; }
.primary-nav a{
  display:inline-block; padding:10px 16px; border-radius: 999px; text-decoration:none;
  color: var(--ink); font-weight:600; font-size:.96rem; transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover{ background: var(--green-100); color: var(--green-900); }
.primary-nav a.is-active{ background: linear-gradient(135deg, var(--green-700), var(--green-900)); color:#fff; box-shadow: 0 6px 14px -6px rgba(5,77,19,.5); }

@media (max-width: 860px){
  /* The toggle sits inside .site-header, which is the positioned stacking
     context the full-screen nav overlay below also paints in. Lifting the
     toggle's own z-index above the overlay's is what keeps it clickable
     (as a close "X") while the overlay covers everything else, including
     the header's own area. */
  .nav-toggle{ display:flex; position:relative; z-index:102; }
  .nav-toggle__bar{ transition: transform .22s ease, opacity .18s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* Full-screen takeover, not a dropdown -- kept in the DOM (not display:none)
     so opacity/transform can transition smoothly; visibility handles
     click-through and keyboard focus while closed. */
  .primary-nav{
    position:fixed; inset:0; z-index:101; order:unset;
    width:auto; margin:0; padding: 24px; border-top:none;
    background: var(--paper);
    display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .primary-nav.is-open{
    opacity:1; visibility:visible; transform:translateY(0);
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav ul{ flex-direction:column; gap:8px; width:100%; max-width:420px; margin:0 auto; }
  .primary-nav a{
    display:block; text-align:center; padding:18px 20px; border-radius: var(--radius-sm);
    font-size:1.2rem;
  }
}

/* ---------- utility bar ---------- */
.utility-bar{ background: var(--green-900); color: rgba(255,255,255,.9); font-size:.82rem; }
.utility-bar .wrap{ display:flex; justify-content:flex-end; gap:22px; padding:7px 24px; flex-wrap:wrap; }
.utility-bar a{ color: rgba(255,255,255,.9); text-decoration:none; font-weight:600; }
.utility-bar a:hover{ color:#fff; text-decoration:underline; }
@media (max-width:700px){ .utility-bar .wrap{ justify-content:center; gap:14px; } }

/* ---------- hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(5,6,210,.35), transparent 55%),
    linear-gradient(160deg, var(--green-900) 0%, #043b0f 100%);
  color:#fff; padding: 60px 0 96px;
}
.hero::before{
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, rgba(0,0,0,.9), transparent 70%);
          mask-image: linear-gradient(160deg, rgba(0,0,0,.9), transparent 70%);
}
.hero::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:64px; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C240,90 480,0 720,20 C960,40 1200,100 1440,50 L1440,100 L0,100 Z' fill='%23f5f8f5'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat:no-repeat;
}
.hero .wrap{ position:relative; z-index:1; }
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:8px; text-transform:uppercase; letter-spacing:.14em;
  font-size:.76rem; font-weight:700; color: rgba(255,255,255,.85); margin-bottom:16px;
}
.hero__eyebrow::before{ content:""; width:22px; height:2px; background: var(--blue-glow); border-radius:2px; }
.hero h1{ color:#fff; margin-bottom:.35em; }
.hero p{ color: rgba(255,255,255,.9); max-width: 62ch; font-size:1.1rem; }
.hero--sub{ padding: 46px 0 76px; }
.hero--sub::after{ height:44px; }

/* ---------- quick-link badges (circular icon cards) ---------- */
.quick-links{ margin-top:-58px; position:relative; z-index:2; }
.quick-links ul{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:20px; }
.quick-links a{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px;
  background:var(--paper); border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px 22px; text-decoration:none; color:var(--ink); box-shadow: var(--shadow);
  height:100%; position:relative; overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.quick-links a::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green-600), var(--blue-glow));
  transform: scaleX(0); transform-origin:left; transition: transform .25s ease;
}
.quick-links a:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick-links a:hover::before{ transform: scaleX(1); }
.quick-links__icon{
  width:78px; height:78px; border-radius:50%;
  background: linear-gradient(145deg, var(--green-100), #d7ecdc);
  display:flex; align-items:center; justify-content:center; flex:none;
  color: var(--green-700); box-shadow: inset 0 0 0 1px rgba(10,122,38,.12);
  transition: transform .25s ease;
}
.quick-links a:hover .quick-links__icon{ transform: scale(1.08); }
.quick-links__icon svg{ width:34px; height:34px; }
.quick-links__label{ font-family: var(--font-heading); font-weight:700; color: var(--green-900); font-size:1rem; }
.quick-links__desc{ color: var(--ink-soft); font-size:.86rem; line-height:1.4; }
@media (max-width: 980px){
  .quick-links ul{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px){
  .quick-links ul{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .quick-links{ margin-top:-38px; }
  .quick-links ul{ grid-template-columns: minmax(0,1fr); gap:14px; }
  .quick-links a{ flex-direction:row; text-align:left; padding:16px; }
  .quick-links__icon{ width:56px; height:56px; }
  .quick-links__icon svg{ width:26px; height:26px; }
}

/* ---------- blue-bin call to action ---------- */
.cta-band{
  background: var(--green-100); border-radius: var(--radius); padding: 44px 40px;
}
.cta-band__icon{
  width:96px; height:96px; border-radius:50%; background:#fff; display:inline-flex;
  align-items:center; justify-content:center; color: var(--green-700); box-shadow: var(--shadow);
}
.cta-band__icon svg{ width:52px; height:52px; }
@media (max-width: 760px){ .cta-band{ padding: 28px 22px; } }

/* ---------- stats band ---------- */
.stats-band{
  background: linear-gradient(135deg, #043b0f, var(--green-900) 55%, #062f5c);
  color:#fff; padding: 52px 0;
}
.stats-band ul{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:24px; text-align:center; }
.stats-band__num{
  font-family: var(--font-heading); font-weight:800; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  background: linear-gradient(90deg, #ffffff, #bcd9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height:1.1;
}
.stats-band__label{ color: rgba(255,255,255,.78); font-size:.92rem; margin-top:6px; }
@media (max-width: 760px){ .stats-band ul{ grid-template-columns: repeat(2,minmax(0,1fr)); gap:32px 20px; } }

/* ---------- layout helpers ---------- */
.section{ padding: 48px 0; }
.section + .section{ border-top: 1px solid var(--line); }
.section-head{ margin-bottom: 24px; }
.section-head p{ color: var(--ink-soft); max-width: 68ch; }
.grid{ display:grid; gap:20px; }
.grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 760px){ .grid--2, .grid--3{ grid-template-columns: minmax(0,1fr); } }

.card{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card--accent{ border-top: 3px solid var(--green-600); }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding: 13px 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900)); color:#fff; font-weight:700; text-decoration:none; border:none; cursor:pointer;
  font-size: .98rem; box-shadow: 0 8px 18px -8px rgba(5,77,19,.55); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{ color:#fff; transform: translateY(-2px); filter:brightness(1.06); box-shadow: 0 12px 22px -8px rgba(5,77,19,.6); }
.btn--outline{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.7); box-shadow:none; }
.btn--outline:hover{ background: rgba(255,255,255,.14); color:#fff; box-shadow:none; }
.btn--blue{ background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); box-shadow: 0 8px 18px -8px rgba(5,6,210,.5); }
.btn--ghost{ background: var(--green-100); color: var(--green-900); box-shadow:none; }
.btn--ghost:hover{ background:#d9efdd; color:var(--green-900); box-shadow:none; }
.btn--danger{ background: linear-gradient(135deg, #c22e25, #8f1e17); box-shadow: 0 8px 18px -8px rgba(143,30,23,.5); }
.btn--sm{ padding:8px 14px; font-size:.88rem; }

/* ---------- icons (inline SVG, never emoji) ---------- */
.icon{ display:inline-block; width:1em; height:1em; vertical-align:-0.15em; flex:none; }
.icon--lg{ width:1.25em; height:1.25em; vertical-align:-0.22em; }
.badge-icon{ width:14px; height:14px; display:inline-block; vertical-align:-2px; flex:none; }

/* ---------- member lists ---------- */
.member-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 24px; }
@media (max-width:600px){ .member-list{ grid-template-columns: minmax(0,1fr); } }
.member-list li{
  padding: 9px 0 9px 30px; border-bottom: 1px dashed var(--line); position:relative; font-size:.98rem;
}
.member-list li::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:16px; height:16px; background-color: var(--green-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2v6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'/%3E%3Cpath d='M3 22v-6h6'/%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2v6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'/%3E%3Cpath d='M3 22v-6h6'/%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- recyclable lookup ---------- */
.lookup-card{
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 28px; max-width: 640px; margin: 0 auto;
}
.lookup-form{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.lookup-form input{
  flex: 1 1 240px; padding: 13px 16px; border:1px solid var(--line); border-radius: 999px;
  font-size: 1rem; font-family: var(--font); color: var(--ink);
}
.lookup-form input:focus{ outline: 2px solid var(--green-600); outline-offset: 1px; }
.lookup-form .btn{ flex: 0 0 auto; }
.lookup-suggestions{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px; }
.lookup-suggestion{
  background: var(--green-100); border:1px solid transparent; color: var(--green-900);
  border-radius: 999px; padding: 10px 16px; min-height: 44px; font-size:.92rem; font-weight:600; cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.lookup-suggestion:hover{ background: var(--blue-100); color: var(--blue-700); transform: translateY(-1px); }
.lookup-empty{ color: var(--ink-soft); margin:0; }
.lookup-result{ margin-top:18px; padding: 20px; border-radius: var(--radius-sm); background: var(--bg); border:1px solid var(--line); }
.lookup-result__name{ display:block; font-family: var(--font-heading); font-size:1.15rem; color: var(--green-900); margin-top:8px; }
.lookup-result__note{ margin: 8px 0 0; color: var(--ink-soft); font-size:.94rem; }
.lookup-badge{
  display:inline-flex; align-items:center; gap:6px; padding: 6px 14px; border-radius:999px;
  font-weight:700; font-size:.88rem; letter-spacing:.01em;
}
.lookup-badge--yes{ background: var(--green-100); color: var(--green-700); }
.lookup-badge--sarcan{ background: var(--blue-100); color: var(--blue-700); }
.lookup-badge--no{ background:#fbe9e7; color:#b3261e; }
.lookup-badge--unsure{ background: var(--amber-100); color:#8a6200; }
.confidence-tag{ display:inline-block; margin-left:8px; font-size:.76rem; color: var(--ink-soft); font-style:italic; }
.lookup-disclaimer{ margin: 18px 0 0; font-size:.86rem; color: var(--ink-soft); text-align:center; }
@media (max-width:600px){ .lookup-card{ padding: 26px 18px; } .lookup-form{ flex-direction:column; } .lookup-form .btn{ width:100%; justify-content:center; } }

/* ---------- photo scanner (promoted to the page's primary action) ---------- */
.scan-card{
  background: linear-gradient(180deg, var(--green-100), var(--paper) 55%);
  border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 28px; max-width: 640px; margin: 0 auto;
}
.scan-box{ text-align:center; margin-top: 4px; }
.scan-box__controls{ display:flex; flex-direction:column; align-items:center; gap:14px; justify-content:center; }
.scan-box__pick{ cursor:pointer; }
/* Primary action: one big, unmistakable tap target -- this is the whole point of the redesign. */
.scan-box__primary{
  width:100%; max-width: 360px; justify-content:center;
  padding: 20px 28px; font-size: 1.1rem; border-radius: var(--radius-sm);
  box-shadow: 0 12px 26px -10px rgba(5,77,19,.55);
}
.scan-box__primary span{ font-size:1.3rem; }
/* Secondary action: demoted to a plain, low-emphasis link so it never competes with the primary button. */
.scan-box__secondary{
  background:none; box-shadow:none; color: var(--ink-soft); text-decoration:underline;
  padding: 10px 14px; min-height:44px; font-weight:600;
}
.scan-box__secondary:hover{ color: var(--green-900); transform:none; box-shadow:none; }
.scan-box__preview{ display:block; max-width:260px; max-height:260px; margin:20px auto 0; border-radius: var(--radius-sm); border:1px solid var(--line); box-shadow: var(--shadow); object-fit:cover; }
.scan-camera{ margin-top:14px; }
.scan-camera__video{
  display:block; width:100%; max-width:420px; max-height:320px; margin:0 auto;
  border-radius: var(--radius-sm); border:1px solid var(--line); box-shadow: var(--shadow);
  background:#000; object-fit:cover;
}
#scan-box__preview-controls, #scan-camera .scan-box__controls{ flex-direction:row; flex-wrap:wrap; margin-top:14px; }
@media (max-width:600px){
  .scan-card{ padding: 26px 18px; }
  .scan-box__primary{ max-width:none; }
  #scan-box__preview-controls, #scan-camera .scan-box__controls{ flex-direction:column; align-items:stretch; }
  #scan-box__preview-controls .btn, #scan-camera .scan-box__controls .btn{ justify-content:center; }
}

.tonnage-chart__bars{ display:flex; align-items:flex-end; gap:8px; height:140px; }
.tonnage-chart__col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.tonnage-chart__bar{
  width:100%; max-width:34px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--green-600), var(--green-900));
}
.tonnage-chart__value{ font-size:.72rem; font-weight:700; color: var(--green-900); margin-top:6px; }
.tonnage-chart__year{ font-size:.7rem; color: var(--ink-soft); margin-top:2px; }
@media (max-width:600px){ .tonnage-chart__value{ display:none; } }

.process-panel{ text-align:left; }
.process-steps{ list-style:none; margin:0; padding:0; counter-reset: step; display:grid; gap:14px; }
.process-steps li{
  position:relative; padding-left:44px; counter-increment: step;
}
.process-steps li::before{
  content: counter(step); position:absolute; left:0; top:-2px;
  width:28px; height:28px; border-radius:50%; background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color:#fff; font-weight:800; font-size:.88rem; display:flex; align-items:center; justify-content:center;
}

/* ---------- lists ---------- */
.check-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.check-list li{ padding-left: 28px; position:relative; }
.check-list li::before{
  content:""; position:absolute; left:0; top:5px; width:17px; height:17px;
  background-color: var(--green-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cross-list li::before{
  background-color:#b3261e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- JamFam rich-text content ---------- */
/* Applies inside any element the JamFam Hub fills with formatted content, so
   headings/lists/links the board writes in the Hub match the rest of the site. */
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4{
  font-family: var(--font-heading); color: var(--green-900); margin: 1.3em 0 .5em;
}
.rich-text h1:first-child, .rich-text h2:first-child, .rich-text h3:first-child, .rich-text h4:first-child{ margin-top:0; }
.rich-text p{ margin:0 0 1em; }
.rich-text ul, .rich-text ol{ margin:0 0 1em; padding-left:1.3em; }
.rich-text ul.check-list, .rich-text ul.member-list{ padding-left:0; }
.rich-text li{ margin-bottom:.4em; }
.rich-text a{ color: var(--green-700); font-weight:600; }
.rich-text strong{ color: var(--green-900); }
.rich-text > *:last-child{ margin-bottom:0; }

/* The mailing address is a plain (non-rich-text) field reused in the header,
   footer and contacts card — this keeps a line break intact if the Hub ever
   stores/injects it as plain text with a real newline rather than a <br>. */
[data-jamfam-field="org.mailing_address"]{ white-space: pre-line; }

/* ---------- news ---------- */
.news-item{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom:18px; box-shadow: var(--shadow); }
.news-item__date{ display:inline-block; font-size:.82rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color: var(--blue-700); background: var(--blue-100); padding: 4px 10px; border-radius: 999px; margin-bottom:10px; }
.news-item .body{ color: var(--ink); }
.empty-state{ color: var(--ink-soft); font-style:italic; }

/* ---------- contact cards ---------- */
.contact-card dt{ font-weight:700; color: var(--green-900); margin-top:10px; }
.contact-card dd{ margin:0 0 4px; color: var(--ink-soft); }

.badge{ display:inline-block; padding:3px 10px; border-radius:999px; font-size:.78rem; font-weight:700; }
.badge--green{ background: var(--green-100); color: var(--green-900); }
.badge--blue{ background: var(--blue-100); color: var(--blue-700); }
.badge--amber{ background: var(--amber-100); color: var(--amber-700); }

.map-figure{ background: var(--paper); border:1px solid var(--line); border-radius: var(--radius); padding:16px; box-shadow: var(--shadow); text-align:center; }
.map-figure figcaption{ margin-top:8px; color: var(--ink-soft); font-size:.88rem; }

.callout{ background: var(--amber-100); border:1px solid #f1de9e; color:#5c3d00; border-radius: var(--radius); padding:18px 20px; }
.callout--blue{ background: var(--blue-100); border-color:#c7c8fb; color: var(--blue-700); }

/* ---------- footer ---------- */
.site-footer{
  background: linear-gradient(180deg, var(--green-900), #033209);
  color: rgba(255,255,255,.85); margin-top: 40px; border-top: 4px solid var(--blue-glow);
}
.site-footer__inner{ padding: 40px 24px calc(28px + env(safe-area-inset-bottom)); display:grid; gap:18px; }
.site-footer__links{ display:flex; flex-wrap:wrap; gap:4px 8px; }
.site-footer a{ color:#fff; text-decoration:none; opacity:.85; transition: opacity .15s ease; padding:8px 0; display:inline-flex; align-items:center; }
.site-footer__links a{ padding:8px 10px; margin:-8px -10px; border-radius:8px; }
.site-footer a:hover{ text-decoration:underline; opacity:1; }
.site-footer__org strong{ font-family: var(--font-heading); font-size:1.05rem; }
.site-footer__copy{ font-size:.82rem; opacity:.65; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); }

/* ---------- forms (admin reuses these) ---------- */
.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-weight:700; margin-bottom:6px; color: var(--green-900); }
.form-field .hint{ font-size:.85rem; color: var(--ink-soft); margin-top:4px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=url], textarea, select{
  width:100%; padding: 11px 13px; border:1px solid #c9d3cc; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background:#fff; color: var(--ink);
}
textarea{ min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus{ outline: 2px solid var(--blue-700); outline-offset:1px; }

.flash{ padding:14px 18px; border-radius: var(--radius-sm); margin-bottom:20px; font-weight:600; }
.flash--success{ background: var(--green-100); color: var(--green-900); border:1px solid #bfe4c6; }
.flash--error{ background:#fde8e6; color:#8f1e17; border:1px solid #f3bcb6; }

/* ---------- admin shell ---------- */
.admin-shell{ min-height:100vh; display:flex; }
.admin-sidebar{ width:230px; background: var(--green-900); color:#fff; padding: 22px 16px; flex: none; }
.admin-sidebar a{ display:block; color: rgba(255,255,255,.85); text-decoration:none; padding:10px 12px; border-radius: var(--radius-sm); font-weight:600; margin-bottom:2px; }
.admin-sidebar a:hover, .admin-sidebar a.is-active{ background: rgba(255,255,255,.14); color:#fff; }
.admin-sidebar__brand{ display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.admin-sidebar__brand img{ width:36px; }
.admin-main{ flex:1; padding: 32px; max-width: 980px; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.table-list{ width:100%; border-collapse:collapse; background:#fff; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.table-list th, .table-list td{ padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align: top; }
.table-list thead th{ background: var(--green-100); color: var(--green-900); }
.row-actions{ display:flex; gap:8px; flex-wrap: wrap; }
.login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; background: var(--bg); padding:24px; }
.login-card{ background:#fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; width:100%; max-width:380px; text-align:center; }
.login-card img{ width:56px; margin:0 auto 14px; }
@media (max-width: 760px){
  .admin-shell{ flex-direction: column; }
  .admin-sidebar{ width:100%; display:flex; align-items:center; gap:6px; overflow-x:auto; padding:12px; }
  .admin-sidebar__brand{ margin:0 10px 0 0; }
  .admin-main{ padding:20px; }
}

/* -------------------------------------------------------------------- */
/* JamFam Media credit badge -- fixed bottom-left, links to
   jamfammedia.ca. Bottom-left (not bottom-right) deliberately, so it
   doesn't collide with Netlify's own "Powered by Netlify" badge, which
   is injected on the opposite corner and outside this stylesheet's
   control. */
.jamfam-badge{
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 9px;
  background: #fa6406; color: #fff; text-decoration: none;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: .86rem; font-weight: 650; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease;
  max-width: calc(100vw - 32px);
}
.jamfam-badge:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(250,100,6,.55), var(--shadow-lg); color:#fff; }
.jamfam-badge img{ height: 26px; width: auto; display:block; flex: none; }
.jamfam-badge span{ white-space: nowrap; }
@media (max-width: 560px){
  .jamfam-badge{ left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); padding: 7px 13px 7px 8px; font-size: .8rem; }
  .jamfam-badge img{ height: 22px; }
}
