/* What's new (/whats-new, src/app/WhatsNew.tsx): every product's release notes. Its title and when anything last
   changed; a pill a product (its picture, its short name) to narrow the page; then changelog rows: the product (its
   picture, its name tinted in its own colour: app.css --fashion and the rest), version and date in a fixed column,
   the headline and its bullets beside them. */
.wn-page {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg0);
  scrollbar-gutter: stable;
}
.wn-page.vbar-host {
  padding-right: 16px !important;
}
.wn-page [data-product='fashion'] {
  --product: var(--fashion);
}
.wn-page [data-product='maps'] {
  --product: var(--maps);
}
.wn-page [data-product='data'] {
  --product: var(--data);
}
.wn-page [data-product='pocket'] {
  --product: var(--pocket);
}
.wn-page [data-product='merchant'] {
  --product: var(--merchant);
}
.wn-page [data-product='adventure'] {
  --product: var(--adventure);
}
.wn-main {
  width: min(56rem, 100%);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.wn-intro {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.wn-intro h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 650;
  color: var(--fg0);
}
/* (the herald's trumpet before the title, in its colour, as the top bar's What's new has it) */
.wn-icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wn-meta {
  font: 0.75rem var(--mono);
  color: var(--fg2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Big Rat's picture: its landing card, cropped to the rat (the tools are told apart by their colours; their crops are
   kept for any later use) */
.wn-pic {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background-color: var(--bg3);
  background-repeat: no-repeat;
}
.wn-pic[data-product='fashion'] {
  background-image: url(/landing/fashion-800.webp);
  background-size: 364%;
  background-position: 86% 25%;
}
.wn-pic[data-product='maps'] {
  background-image: url(/landing/maps-800.webp);
  background-size: 471%;
  background-position: 99% 76%;
}
.wn-pic[data-product='data'] {
  background-image: url(/landing/data-800.webp);
  background-size: 267%;
  background-position: 72% 40%;
}
.wn-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--unread);
  flex: none;
}
.wn-pic .wn-dot {
  position: absolute;
  top: -0.1875rem;
  right: -0.1875rem;
  box-shadow: 0 0 0 2px var(--bg0);
}

/* the products: a pill each, its picture and name; All first */
.wn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.wn-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem; /* (Big Rat's picture at its right end, after its name) */
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  background: var(--bg2);
  color: var(--fg0);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wn-tab .wn-pic {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
}
.wn-tab .wn-dot {
  width: 0.375rem;
  height: 0.375rem;
}
.wn-tab-all,
.wn-tab-plain {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  min-height: 1.9375rem;
}
/* (a tool's name in its colour on its pill, as across the site, pressed or not) */
.wn-tab-plain {
  color: var(--product);
}
.wn-tab:hover {
  background: var(--bg3);
}
.wn-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* (the pressed pill in the tool switch's own picked blue, edged in the accent: Joe, 2026-11-17, white stood out of
   the theme) */
.wn-tab.on {
  background: var(--sel);
  border-color: var(--accent);
}
.wn-tab:active {
  transform: scale(0.97);
}

/* the releases: changelog rows, the product, version and date in a column of their own */
.wn-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.wn-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.wn-side {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.wn-who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.wn-chip {
  padding: 0.0625rem 0.5rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--product);
  background: color-mix(in srgb, var(--product) 14%, transparent);
}
.wn-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--fg0);
  text-wrap: balance;
}
.wn-p {
  margin: 0.375rem 0;
  color: var(--fg1);
  font-size: 0.875rem;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 44rem;
}
.wn-h {
  margin-top: 0.625rem;
  color: var(--fg0);
  font-weight: 600;
}
.wn-list {
  margin: 0.25rem 0 0.375rem;
  padding-left: 1.125rem;
  color: var(--fg1);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 44rem;
}
.wn-list li {
  margin: 0.1875rem 0;
}
.wn-body a {
  color: var(--accent);
}
.wn-more {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.5625rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg2);
  color: var(--fg0);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.wn-more:hover {
  background: var(--bg3);
}
.wn-empty {
  color: var(--fg2);
  font-size: 0.875rem;
  padding-top: 1rem;
}
/* a phone: the product, version and date in one line over the release */
@media (max-width: 640px) {
  .wn-main {
    padding: 1.5rem 0.875rem 2.5rem;
    gap: 1rem;
  }
  .wn-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.9375rem 0;
  }
  .wn-side {
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
  }
}
.wn-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* (a tool's icon after its name: Brighter Pocket's Apple logo in the tab's and the chip's own colour, so it shows on
   a picked tab) */
.wn-tab .apple-icon,
.wn-chip .apple-icon,
.wn-tab .tool-icon,
.wn-chip .tool-icon {
  margin-left: 0;
}
.wn-tab .apple-icon,
.wn-chip .apple-icon {
  color: currentColor;
}
.wn-chip .apple-icon,
.wn-chip .tool-icon {
  margin-left: 0.25rem;
}
