/* what we publish (homepage #pillars): keep the side dot rail from sitting on
   the cards. equal margins on both sides so the 3-card grid stays centered. */
@media (min-width: 861px) {
  .snap-pillars .snap-panel-inner { width: min(1120px, calc(100% - 112px)); }
}
@media (max-width: 860px) {
  .snap-pillars .snap-panel-inner { width: calc(100% - 64px); }
}

/* what we offer: trimmed, three equal cards */
@media (min-width: 860px) {
  #what-we-offer .wwd-grid { grid-template-columns: repeat(3, 1fr); }
}

/* merged what we offer + what we publish: four equal cards */
#what-we-offer .wwd-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { #what-we-offer .wwd-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #what-we-offer .wwd-grid-4 { grid-template-columns: repeat(4, 1fr); } }
#what-we-offer .wwd-grid-4 .wwd-card { display: flex; flex-direction: column; }
#what-we-offer .wwd-grid-4 .wwd-link { margin-top: auto; align-self: flex-start; }
#what-we-offer .st-latest { font-size: inherit; }
#what-we-offer .st-latest, #what-we-offer .st-latest a, #what-we-offer .st-latest-date { font-size: inherit; line-height: inherit; color: inherit; }
#what-we-offer .st-latest a { text-decoration: none; border-bottom: 1px solid rgba(168, 120, 255, 0.35); }
#what-we-offer .st-latest-k { font-size: inherit; letter-spacing: 0; text-transform: none; }
#what-we-offer p.st-latest#st-latest { font-size: 14.72px; line-height: 1.6; color: rgb(154, 154, 173); }
#what-we-offer p.st-latest#st-latest a, #what-we-offer p.st-latest#st-latest span { font-size: inherit; color: inherit; }
#what-we-offer p.st-latest#st-latest .st-latest-k { color: var(--accent, #a878ff); }

/* phones: the whole what we offer section fits one screen.
   2x2 grid, equal card heights, 2-line clamps, compact header. */
@media (max-width: 639px) {
  .home-snap .snap-panel.snap-wwd {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
    justify-content: flex-start;
  }
  /* 26px each side keeps the fixed dot rail (right 10px, ~22px wide) off the cards */
  #what-we-offer .wwd-inner {
    width: calc(100% - 52px);
    padding: calc(var(--nav-h) + 14px) 0 calc(18px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  #what-we-offer .wwd-head .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
  }
  #what-we-offer .wwd-head .section-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 6px;
  }
  #what-we-offer .wwd-lede {
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 36ch;
  }
  #what-we-offer .wwd-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
  }
  #what-we-offer .wwd-grid-4 .wwd-card {
    padding: 12px 12px 8px;
    gap: 5px;
    border-radius: 16px;
    min-height: 0;
  }
  #what-we-offer .wwd-card::before { border-radius: 16px 16px 0 0; }
  #what-we-offer .wwd-card .pillar-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1.3;
  }
  #what-we-offer .wwd-card .pillar-title {
    font-size: 1.12rem;
    line-height: 1.15;
  }
  #what-we-offer .wwd-card .pillar-lede,
  #what-we-offer p.st-latest#st-latest {
    font-size: 0.78rem;
    line-height: 1.45;
    max-width: none;
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  #what-we-offer p.st-latest#st-latest .st-latest-date,
  #what-we-offer p.st-latest#st-latest sup.cite { display: none; }
  #what-we-offer .wwd-grid-4 .wwd-link {
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding: 8px 0 7px;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: rgba(192, 132, 252, 0.4);
    text-underline-offset: 3px;
  }
}
@media (max-width: 359px) {
  #what-we-offer .wwd-head .section-label,
  #what-we-offer .wwd-card .pillar-label { letter-spacing: 0.06em; }
}
