:root{
  --bsa-update-green:#00473e;
  --bsa-update-green-deep:#003c34;
  --bsa-update-orange:#f77b00;
  --bsa-update-orange-dark:#d96800;
  --bsa-update-cream:#d7d7bd;
  --bsa-update-bg:#f5f4ec;
  --bsa-update-ink:#28231f;
  --bsa-update-muted:#716b64;
  --bsa-update-line:#e4e0d7;
  --bsa-update-white:#fff;
}

.bsa-updates-page,
.bsa-updates-page *{
  box-sizing:border-box;
}

.bsa-updates-page{
  font-family:Nunito,Arial,sans-serif;
  background:var(--bsa-update-bg);
  min-height:100vh;
  padding-bottom:72px;
  color:var(--bsa-update-ink);
}

/* Archive introduction uses the logo's deep green, orange and warm neutral tones. */
.bsa-updates-head{
  position:relative;
  overflow:hidden;
  background:var(--bsa-update-green);
  color:#fff;
  border-top:4px solid var(--bsa-update-orange);
  border-bottom:1px solid rgba(255,255,255,.14);
  padding:34px 20px;
}

.bsa-updates-head::after{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  right:-120px;
  top:-190px;
  border:1px solid rgba(215,215,189,.18);
  transform:rotate(35deg);
  pointer-events:none;
}

.bsa-updates-head-inner{
  position:relative;
  z-index:1;
  max-width:980px;
  margin:0 auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
}

.bsa-updates-kicker{
  display:block;
  margin-bottom:5px;
  color:var(--bsa-update-orange);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.bsa-updates-head h1{
  margin:0;
  color:#fff;
  font-size:40px;
  font-weight:900;
  line-height:1.05;
}

.bsa-updates-head p{
  margin:8px 0 0;
  color:rgba(255,255,255,.78);
  font-size:14px;
  line-height:1.55;
}

.bsa-updates-search{
  width:min(390px,100%);
  min-height:46px;
  display:flex;
  border:1px solid rgba(255,255,255,.3);
  background:#fff;
}

.bsa-updates-search input{
  flex:1;
  min-width:0;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:12px 14px;
  color:var(--bsa-update-ink);
  font:inherit;
  background:transparent;
}

.bsa-updates-search input::placeholder{color:#938b83}

.bsa-updates-search button{
  width:48px;
  flex:0 0 48px;
  border:0;
  border-left:1px solid #ede7df;
  border-radius:0;
  background:var(--bsa-update-orange);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .2s ease;
}

.bsa-updates-search button:hover{background:var(--bsa-update-orange-dark)}
.bsa-updates-search svg{width:19px;height:19px;fill:#fff}

.bsa-updates-feed{
  width:100%;
  max-width:720px;
  margin:26px auto 0;
  padding:0 10px;
}

.bsa-update-card{
  width:100%;
  overflow:visible;
  display:flex;
  flex-direction:column;
  margin:0 0 24px;
  background:#fff;
  border:1px solid var(--bsa-update-line);
  border-top:3px solid var(--bsa-update-orange);
  box-shadow:0 8px 28px rgba(0,71,62,.055);
}

.bsa-update-card-head{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:64px;
  padding:11px 14px;
  background:#fff;
}

.bsa-update-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  background:var(--bsa-update-green);
  color:#fff;
  border:2px solid var(--bsa-update-orange);
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:16px;
}

.bsa-update-author{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.bsa-update-author strong{font-size:14px;color:var(--bsa-update-green-deep);font-weight:900}
.bsa-update-author span{font-size:11.5px;color:var(--bsa-update-muted);margin-top:2px}

/* Instagram-like carousel: full card width, controlled height, cropped neatly. */
.bsa-update-media{
  position:relative;
  width:100%;
  aspect-ratio:4 / 5;
  max-height:590px;
  overflow:hidden;
  background:#121212;
  isolation:isolate;
  touch-action:pan-y pinch-zoom;
}

.bsa-update-track{
  width:100%;
  height:100%;
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.bsa-update-track::-webkit-scrollbar{display:none}

.bsa-update-slide{
  flex:0 0 100%;
  width:100%;
  height:100%;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bsa-update-image,
.bsa-update-slide img,
.bsa-update-video-slide video{
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:cover;
  object-position:center;
  background:#111;
}
.bsa-update-video-slide video{background:#000}

.bsa-carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(255,255,255,.32);
  border-radius:0;
  display:grid;
  place-items:center;
  background:rgba(0,71,62,.9);
  color:#fff;
  cursor:pointer;
  z-index:4;
  transition:opacity .2s ease,background .2s ease;
}
.bsa-carousel-arrow:hover{background:var(--bsa-update-orange)}
.bsa-carousel-arrow:disabled{opacity:.25;cursor:default}
.bsa-carousel-arrow svg{width:21px;height:21px;fill:currentColor}
.bsa-carousel-prev{left:10px}
.bsa-carousel-next{right:10px}

.bsa-carousel-dots{
  position:absolute;
  left:50%;
  bottom:11px;
  transform:translateX(-50%);
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:5px 7px;
  background:rgba(0,0,0,.28);
}

.bsa-carousel-dot{
  width:6px;
  height:6px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.62);
  cursor:pointer;
}
.bsa-carousel-dot.is-active{width:8px;height:8px;background:var(--bsa-update-orange)}

.bsa-update-copy{
  padding:13px 14px 14px;
  background:#fff;
}
.bsa-update-copy strong{
  display:block;
  margin-bottom:4px;
  color:var(--bsa-update-green-deep);
  font-size:16px;
  font-weight:900;
  line-height:1.3;
}
.bsa-update-copy p{
  margin:0;
  color:#3f3a35;
  font-size:14px;
  line-height:1.58;
}

/* Compact final row. It remains the last item in each post. */
.bsa-update-actions{
  position:relative;
  display:grid;
  grid-template-columns:.82fr .82fr 1.35fr;
  align-items:stretch;
  margin-top:auto;
  border-top:1px solid var(--bsa-update-line);
  background:#fff;
}

.bsa-update-action{
  min-width:0;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  margin:0;
  padding:5px 6px;
  border:0;
  border-right:1px solid var(--bsa-update-line);
  border-radius:0!important;
  background:#fff;
  color:#403a34;
  font:inherit;
  font-size:10.5px;
  font-weight:800;
  line-height:1.1;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}

.bsa-update-action:hover{color:var(--bsa-update-green)!important;background:#faf9f5}
.bsa-update-action svg{width:15px;height:15px;flex:0 0 auto;fill:currentColor}
.bsa-update-action strong{font-size:9.5px;font-weight:900}
.bsa-like-button.is-liked{color:var(--bsa-update-orange)}
.bsa-like-button.is-liked svg path{fill:currentColor}

.bsa-safari-cta{
  border-right:0;
  background:var(--bsa-update-orange);
  color:#fff;
}
.bsa-safari-cta:hover{background:var(--bsa-update-green);color:#fff!important}

.bsa-share-menu{
  position:absolute;
  left:29%;
  bottom:calc(100% + 1px);
  top:auto;
  z-index:20;
  min-width:160px;
  background:#fff;
  border:1px solid var(--bsa-update-line);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}
.bsa-share-menu a{
  display:block;
  padding:10px 13px;
  color:#2f2b27;
  text-decoration:none;
  border-bottom:1px solid #eee;
  font-size:13px;
  font-weight:800;
}
.bsa-share-menu a:last-child{border-bottom:0}
.bsa-share-menu a:hover{background:#f7f4ed;color:var(--bsa-update-orange)!important}

.bsa-updates-empty{
  background:#fff;
  border:1px solid var(--bsa-update-line);
  border-top:3px solid var(--bsa-update-orange);
  padding:42px 24px;
  text-align:center;
}
.bsa-updates-empty h2{margin:0 0 8px;color:var(--bsa-update-green)}
.bsa-updates-empty p{margin:0;color:var(--bsa-update-muted)}

@media(max-width:720px){
  .bsa-updates-page{padding-bottom:56px}
  .bsa-updates-head{padding:22px 14px}
  .bsa-updates-head-inner{display:block}
  .bsa-updates-head h1{font-size:31px}
  .bsa-updates-head p{font-size:13px}
  .bsa-updates-search{margin-top:16px;width:100%;min-height:43px}
  .bsa-updates-search button{width:44px;flex-basis:44px}

  /* Keep every card at least 10px away from both screen edges. */
  .bsa-updates-feed{margin-top:14px;padding-left:10px;padding-right:10px}
  .bsa-update-card{margin-bottom:14px;border-left:1px solid var(--bsa-update-line);border-right:1px solid var(--bsa-update-line)}
  .bsa-update-card-head{padding:10px 12px;min-height:58px}
  .bsa-update-copy{padding:11px 12px 12px}
  .bsa-update-copy strong{font-size:15px}
  .bsa-update-copy p{font-size:13.5px;line-height:1.52}
  .bsa-carousel-arrow{display:none}

  /* The action group also keeps a 10px inset inside the card. */
  .bsa-update-actions{
    grid-template-columns:.72fr .72fr 1.3fr;
    margin:0 10px 10px;
    border:1px solid var(--bsa-update-line);
  }
  .bsa-update-action{
    min-height:33px;
    padding:4px 4px;
    gap:3px;
    font-size:9.4px;
    letter-spacing:-.01em;
  }
  .bsa-update-action svg{width:13px;height:13px}
  .bsa-update-action strong{font-size:8.8px}
  .bsa-share-menu{left:25%;bottom:calc(100% + 5px)}
}

@media(max-width:390px){
  .bsa-updates-head{padding-left:10px;padding-right:10px}
  .bsa-update-avatar{width:34px;height:34px;flex-basis:34px;font-size:14px}
  .bsa-update-author strong{font-size:13px}
  .bsa-update-author span{font-size:10.5px}
  .bsa-update-actions{grid-template-columns:.68fr .68fr 1.35fr}
  .bsa-update-action{font-size:8.7px;padding-left:2px;padding-right:2px}
  .bsa-update-action svg{width:12px;height:12px}
  .bsa-update-action strong{font-size:8px}
  .bsa-safari-cta span{white-space:normal;text-align:center;line-height:1.05}
}

@media(prefers-reduced-motion:reduce){
  .bsa-update-track{scroll-behavior:auto}
  .bsa-updates-page *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
