/* =====================================================================
   pages/working-groups/nbswg.css — NbSWG detail page only.
   Gradient news-card thumbs (no images), 3-col grid variant, leadership rows.
   ===================================================================== */

/* News-grid 3-col (.news-grid.three) lives in common.css */
.section-grid{margin-top:6px}

/* Gradient thumbs — used as news-card banners with no real image */
.news-thumb.thumb-grad-a,
.news-thumb.thumb-grad-b,
.news-thumb.thumb-grad-c,
.news-thumb.thumb-grad-d,
.news-thumb.thumb-grad-e,
.news-thumb.thumb-grad-f{
  aspect-ratio:16/10;display:flex;align-items:flex-end;
  padding:18px;color:#fff;font-weight:700;
}
.news-thumb.thumb-grad-a{background:linear-gradient(135deg,var(--sp-primary),var(--sp-secondary))}
.news-thumb.thumb-grad-b{background:linear-gradient(135deg,var(--sp-secondary),var(--sp-peach-d))}
.news-thumb.thumb-grad-c{background:linear-gradient(135deg,var(--sp-peach-d),var(--sp-mint))}
.news-thumb.thumb-grad-d{background:linear-gradient(135deg,var(--sp-primary),var(--sp-mint))}
.news-thumb.thumb-grad-e{background:linear-gradient(135deg,var(--sp-secondary),var(--sp-primary))}
.news-thumb.thumb-grad-f{background:linear-gradient(135deg,var(--sp-secondary-d),var(--sp-secondary))}
.thumb-label{flex-grow:1}

/* Aside-card leadership rows */
.aside-card .row .v small.org-mini{
  display:block;font-weight:500;color:var(--sp-muted);
  font-size:11px;margin-top:2px;
}
.aside-card .row .v small.org-mini a{font-weight:600;color:var(--sp-primary)}

/* Contact aside-card */
.contact-blurb{font-size:13.5px;color:var(--sp-muted);line-height:1.6;margin-bottom:14px}
.contact-actions{display:flex;flex-direction:column;gap:8px}

.join-actions{margin-top:24px}

/* R50 — detail/join pages share the approved public Working group treatment. */
body.skin main:has(.wg-detail),
body.skin main:has(.wg-join-hero){
  padding-top:0 !important;
  background:#fff;
}
body.skin main:has(.wg-detail) > .container,
body.skin main:has(.wg-join-hero) > .container{
  width:100% !important;
  max-width:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body.skin .wg-detail{
  display:block;
  color:#062940;
}
body.skin .wg-detail .wg-hero,
body.skin .wg-join-hero{
  position:relative;
  margin-left:calc(50% - 50vw);
  width:100vw;
  min-height:430px;
  padding:62px 0 106px !important;
  overflow:hidden;
  border-radius:0;
  background:
    linear-gradient(135deg, rgba(6,41,64,.72) 0%, rgba(14,74,115,.52) 58%, rgba(0,140,140,.38) 100%),
    url("../../../../images/hero-bg.jpg") center/cover !important;
}
body.skin .wg-detail .wg-hero--has-image{
  background:
    linear-gradient(135deg, rgba(6,41,64,.72) 0%, rgba(14,74,115,.52) 58%, rgba(0,140,140,.38) 100%),
    var(--wg-hero-image) center/cover !important;
}
body.skin .wg-detail .wg-hero::after,
body.skin .wg-join-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:66px;
  background:#fff;
  clip-path:ellipse(72% 66px at 50% 100%);
  pointer-events:none;
}
body.skin .wg-detail .wg-hero > .container,
body.skin .wg-join-hero > .container{
  position:relative;
  z-index:1;
  max-width:1240px !important;
}
body.skin .wg-detail .wg-hero .crumbs,
body.skin .wg-join-hero .crumbs{
  margin-bottom:24px;
}
body.skin .wg-detail .wg-hero .eyebrow,
body.skin .wg-join-hero .eyebrow{
  display:block;
  width:max-content;
  margin:0 0 14px;
  padding:0;
  border:0;
  background:transparent;
  color:#f3b38f;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body.skin .wg-detail .wg-hero h1,
body.skin .wg-join-hero h1{
  max-width:820px;
  margin:0 0 16px !important;
  color:#fff;
  font-size:50px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:0;
}
body.skin .wg-detail .wg-hero .lede,
body.skin .wg-join-hero .lede{
  max-width:820px !important;
  color:rgba(255,255,255,.92) !important;
  font-size:17px;
  line-height:1.65;
}
body.skin .wg-detail .wg-hero .meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}
body.skin .wg-detail .wg-hero .meta-row span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
  font-weight:600;
  backdrop-filter:blur(10px);
}
body.skin .wg-detail .hero-chips span{
  display:inline-flex;
  align-items:center;
  padding:5px 12px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.3px;
  min-height:32px;
  border-radius:999px !important;
}
body.skin .wg-detail .hero-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
body.skin .wg-detail .actions,
body.skin .wg-join-hero + .section .actions{
  gap:12px !important;
  margin-top:22px !important;
}
body.skin .wg-detail .btn,
body.skin .wg-join-hero .btn,
body.skin .gate-panel .btn{
  border-radius:999px !important;
  font-weight:800 !important;
}
body.skin .wg-detail > .section.tight{
  padding:76px 0 90px !important;
}
body.skin .wg-detail > .section.tight > .container{
  max-width:1240px !important;
}
body.skin .wg-detail .layout-2col{
  display:grid;
  grid-template-columns:minmax(0,820px) 340px;
  gap:48px;
  align-items:start;
}
body.skin .wg-detail .wg-main{
  max-width:none;
}
body.skin .wg-detail .wg-main h2{
  margin:0 0 18px;
  padding-top:8px;
  color:#062940;
  font-size:30px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:0;
}
body.skin .wg-detail .wg-main h2:not(:first-child){
  margin-top:42px;
}
body.skin .wg-detail .wg-main p,
body.skin .wg-detail .wg-main li{
  color:#24445f;
  font-size:16px;
  line-height:1.8;
}
body.skin .wg-detail .wg-main ul{
  display:grid;
  gap:10px;
  margin:16px 0 0;
  padding-left:22px;
}
body.skin .wg-detail .wg-aside{
  position:sticky;
  top:108px;
  display:grid;
  gap:18px;
}
body.skin .wg-detail .aside-card{
  padding:22px;
  border:1px solid #d9edf3;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(6,41,64,.08);
}
body.skin .wg-detail .aside-card h4{
  margin:0 0 15px;
  color:#062940;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.skin .wg-detail .aside-card .list{
  display:grid;
  gap:0;
}
body.skin .wg-detail .aside-card .row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid #e5eef2;
}
body.skin .wg-detail .aside-card .row:last-child{
  border-bottom:0;
}
body.skin .wg-detail .aside-card .k{
  flex:0 0 96px;
  color:#657d95;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.skin .wg-detail .aside-card .v{
  color:#062940;
  font-size:13.5px;
  line-height:1.45;
  font-weight:700;
  text-align:right;
}
body.skin .wg-detail .aside-card .v small.org-mini{
  color:#657d95;
  font-size:12px;
  font-weight:600;
}
body.skin .wg-detail .wg-upcoming{
  margin-top:44px;
}
body.skin .wg-detail .wg-upcoming-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body.skin .wg-detail .wg-upcoming-card{
  display:block;
  min-height:160px;
  padding:20px;
  border:1px solid #d9edf3;
  border-radius:14px;
  background:#fff;
  color:#062940;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(6,41,64,.06);
}
body.skin .wg-detail .wg-upcoming-date{
  color:#008c8c;
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
body.skin .wg-detail .wg-upcoming-card h3{
  margin:8px 0;
  color:#062940;
  font-size:18px;
  line-height:1.35;
  font-weight:800;
}
body.skin .gate-panel{
  max-width:780px;
  margin:0 auto;
  border-color:#d9edf3;
  border-radius:16px;
  box-shadow:0 12px 34px rgba(6,41,64,.09);
}
body.skin .gate-panel .actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}
body.skin .form-shell{
  max-width:760px;
  margin:0 auto;
  padding:28px;
  border:1px solid #d9edf3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 34px rgba(6,41,64,.09);
}
body.skin .form-shell .form-item{
  margin:0 0 20px;
}
body.skin .form-shell label{
  display:block;
  margin:0 0 8px;
  color:#062940;
  font-size:14px;
  font-weight:800;
}
body.skin .form-shell input[type="text"],
body.skin .form-shell textarea{
  width:100%;
  min-height:46px;
  padding:11px 13px;
  border:1px solid #d6e6ee;
  border-radius:10px;
  background:#fff;
  color:#062940;
  font:inherit;
  box-shadow:inset 0 1px 0 rgba(6,41,64,.02);
}
body.skin .form-shell textarea{
  min-height:128px;
  resize:vertical;
}
body.skin .form-shell .description,
body.skin .form-shell .form-item__description{
  margin-top:7px;
  color:#49647f;
  font-size:13px;
  line-height:1.55;
}
body.skin .form-shell .form-type-checkbox{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
body.skin .form-shell .form-type-checkbox input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#008c8c;
}
body.skin .form-shell .form-type-checkbox label{
  margin:0;
}
body.skin .form-shell .form-actions{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid #e5eef2;
}
body.skin .form-shell input[type="submit"]{
  min-height:46px;
  padding:12px 22px;
  border:0;
  border-radius:999px;
  background:#008c8c;
  color:#fff;
  font:inherit;
  font-weight:800;
  box-shadow:0 12px 24px rgba(0,140,140,.22);
  cursor:pointer;
}
body.skin .form-shell input[type="submit"]:hover,
body.skin .form-shell input[type="submit"]:focus-visible{
  background:#007879;
}

@media (max-width:960px){
  body.skin .wg-detail .layout-2col{
    grid-template-columns:1fr;
  }
  body.skin .wg-detail .wg-aside{
    position:static;
  }
}
@media (max-width:700px){
  body.skin .wg-detail .wg-hero,
  body.skin .wg-join-hero{
    min-height:0;
    padding:42px 0 92px !important;
  }
  body.skin .wg-detail .wg-hero h1,
  body.skin .wg-join-hero h1{
    font-size:36px;
  }
  body.skin .wg-detail .wg-upcoming-grid{
    grid-template-columns:1fr;
  }
}

/* Public WG detail sidebar polish. */
body.skin .wg-detail .wg-detail__aside,
body.skin .wg-detail .wg-aside{
  min-width:0;
}
body.skin .wg-detail .wg-detail__aside .aside-card,
body.skin .wg-detail .wg-aside .aside-card{
  border-color:#d9edf3;
  border-radius:12px;
}
body.skin .wg-detail .wg-leadership-list,
body.skin .wg-detail .wg-sidebar-links,
body.skin .wg-detail .wg-other-groups{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}
body.skin .wg-detail .wg-leadership-item{
  display:grid;
  gap:3px;
  padding:0 0 11px;
  border-bottom:1px solid #e5eef2;
}
body.skin .wg-detail .wg-leadership-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}
body.skin .wg-detail .wg-leadership-role{
  color:#008c8c;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1.2;
  text-transform:uppercase;
}
body.skin .wg-detail .wg-leadership-name{
  color:#062940;
  font-size:15px;
  line-height:1.35;
  font-weight:800;
}
body.skin .wg-detail .wg-leadership-meta{
  color:#49647f;
  font-size:12.5px;
  line-height:1.45;
  font-weight:600;
}
body.skin .wg-detail .wg-leadership-email{
  width:max-content;
  max-width:100%;
  color:#006f73;
  font-size:13.5px;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
  text-decoration:none;
}
body.skin .wg-detail .wg-leadership-email:hover,
body.skin .wg-detail .wg-leadership-email:focus-visible{
  color:#004f52;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.skin .wg-detail .wg-sidebar-link,
body.skin .wg-detail .wg-other-group{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:12px;
  border:1px solid #e5eef2;
  border-radius:10px;
  background:#f8fbfc;
  color:#062940;
  text-decoration:none;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.skin .wg-detail .wg-sidebar-link{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 12px;
}
body.skin .wg-detail .wg-sidebar-link::after{
  content:"→";
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  color:#008c8c;
  font-size:16px;
  font-weight:900;
}
body.skin .wg-detail .wg-sidebar-link:hover,
body.skin .wg-detail .wg-sidebar-link:focus-visible,
body.skin .wg-detail .wg-other-group:hover,
body.skin .wg-detail .wg-other-group:focus-visible{
  border-color:#9bd6dc;
  background:#fff;
  box-shadow:0 10px 22px rgba(6,41,64,.08);
  transform:translateY(-1px);
}
body.skin .wg-detail .wg-sidebar-link__label,
body.skin .wg-detail .wg-other-group__body strong{
  display:block;
  color:#062940;
  font-size:13.5px;
  line-height:1.35;
  font-weight:900;
}
body.skin .wg-detail .wg-sidebar-link__meta,
body.skin .wg-detail .wg-other-group__body small{
  display:-webkit-box;
  margin-top:3px;
  color:#49647f;
  font-size:12px;
  line-height:1.45;
  font-weight:600;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.skin .wg-detail .wg-other-group__code{
  flex:0 0 56px;
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 8px;
  border-radius:999px;
  background:#e4f6f7;
  color:#007879;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
}
body.skin .wg-detail .wg-other-group__body{
  min-width:0;
  flex:1;
}
body.skin .wg-detail .wg-other-group__arrow{
  flex:0 0 auto;
  color:#008c8c;
  font-size:16px;
  font-weight:900;
}

@media (max-width:960px){
  body.skin .wg-detail .wg-detail__aside,
  body.skin .wg-detail .wg-aside{
    position:static;
  }
}
