/* css/whatsnew.css — CLEAN (groupbox system for both sections)
   - Mobile-first
   - "Added recently" and "What this enables" use the same fieldset/legend styling
*/

:root{
  --wn-max: 980px;

  --wn-radius: 18px;
  --wn-radius-sm: 14px;

  --wn-text: #1f2328;
  --wn-muted: rgba(31,35,40,.70);

  --wn-border: 1px solid rgba(0,0,0,.10);

  /* Surfaces */
  --wn-card-bg: rgba(255,255,255,.35);

  --wn-shadow-card: 0 3px 10px rgba(0,0,0,.045);
  --wn-shadow-soft: 0 4px 14px rgba(0,0,0,.05);

  --wn-accent: rgba(242,192,120,.55);
}

/* Layout */
body.whatsnew{ color: var(--wn-text); }

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#footer-container,
#footer-container-fr,
div[id^="footer-container"]{
  margin-top: auto;
}

.wn-main{
  width: 100%;
  padding: 22px 16px 42px;
}

.wn-section{
  max-width: var(--wn-max);
  margin: 0 auto;
}

/* Typography helpers */
.wn-muted{
  margin: 0;
  color: var(--wn-muted);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
}

.wn-body{
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(31,35,40,.92);
  max-width: 78ch;
}

.wn-h3{
  margin: 0 0 8px;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
}

/* ===== Group box system (fieldset + legend) ===== */
.wn-recent,
.wn-enables{
  margin-top: 16px;
}

.wn-groupbox{
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: var(--wn-radius);
  border: var(--wn-border);
  background: transparent; /* required */
  box-shadow: none;       /* required */
  min-inline-size: 0;
}

.wn-legend{
  padding: 0 10px;
  margin-left: 10px;

  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(31,35,40,.80);
}

/* Added Recently: intro line inside groupbox */
.wn-groupbox-sub{
  margin: 2px 0 14px;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--wn-muted);
}

/* Cards grid */
.wn-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wn-card{
  position: relative;
  border-radius: var(--wn-radius-sm);
  border: 1px solid rgba(0,0,0,.07);
  background: var(--wn-card-bg);
  padding: 14px 14px 34px;
  box-shadow: var(--wn-shadow-card);
}

.wn-card-meta{
  position: absolute;
  right: 14px;
  bottom: 12px;
  margin: 0;
  font-size: 12.5px;
  opacity: .62;
}

/* Enables content inside groupbox */
.wn-enables-copy{
  margin: 2px 0 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(31,35,40,.92);
  max-width: 78ch;
}

.wn-divider{
  height: 1px;
  width: 100%;
  background: rgba(0,0,0,.10);
  margin: 14px 0 12px;
}

.wn-details-note{
  margin: 0;
  color: rgba(31,35,40,.62);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
}

/* CTA link */
.wn-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;

  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;

  text-decoration: none;
  color: inherit;
  opacity: .86;

  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.68);

  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.wn-link:hover{
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: var(--wn-shadow-soft);
}

.wn-link:focus-visible{
  outline: 3px solid var(--wn-accent);
  outline-offset: 3px;
}

.wn-link-arrow{ opacity: .7; }

/* Responsive */
@media (min-width: 720px){
  .wn-main{ padding: 40px 22px 56px; }
  .wn-groupbox{ padding: 20px 20px 18px; }
  .wn-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px){
  .wn-cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wn-link{ transition: none; }
  .wn-link:hover{ transform: none; }
}
