/* ArbStrike: /whats-new, the dated log of what changed. Loaded after og.css, legal.css and guide.css.
   The head is the legal pages' head (.lg-head) with the tag filter standing on the white page as leaning
   tabs. Under it each day is a ruled block: the date on the left (it stays in view while the day's rows
   scroll), then one row per change: tag, what, and a sentence. "Earlier" is the same block set smaller,
   with a date on each row. Nothing animates. How to add an entry: site/DESIGN.md, "What's new". */

/* ---- the filter: the legal pages' tabs, as buttons ---- */
.nw-tabs[hidden] { display: none; }
.nw-tabs button { display: block; min-height: 44px; padding: 13px 18px 8px; border: 0; background: #1F1F1F; color: #D2D2D2; font: italic 900 1.35rem/1 var(--d); text-transform: uppercase; letter-spacing: .012em; white-space: nowrap; cursor: pointer; transform: skewX(-9deg); transition: background-color .14s, color .14s; }
.nw-tabs button[hidden] { display: none; }
.nw-tabs button > span { display: flex; align-items: baseline; gap: 7px; transform: skewX(9deg); }
.nw-tabs button i { font: 700 .72rem/1 var(--t); letter-spacing: .04em; color: #8F8F8F; font-variant-numeric: tabular-nums; }
.nw-tabs button[aria-pressed="true"] { background: #fff; color: #000; }
.nw-tabs button[aria-pressed="true"] i { color: #555; }
.nw-tabs button:focus-visible { outline-offset: -3px; }
@media (hover: hover) { .nw-tabs button[aria-pressed="false"]:hover { background: #333; color: #fff; } }

/* ---- the page ---- */
.nw-body { padding: clamp(34px, 5vw, 70px) 0 clamp(64px, 9vw, 124px); }
.nw-day { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 0 clamp(28px, 4.6vw, 76px); align-items: start; margin-bottom: clamp(52px, 6.4vw, 96px); border-top: 3px solid #000; }
.nw-day[hidden] { display: none; }

/* the date: the day solid, the month drawn in outline, like the numerals of the guides list */
.nw-date { position: sticky; top: 64px; padding: 20px 0 16px; }
.nw-date h2 { font: italic 900 clamp(3.7rem, 6.1vw, 5.7rem)/.8 var(--d); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; scroll-margin-top: 84px; }
.nw-date h2 b { font-weight: 900; padding: 0 .07em 0 .04em; }
.nw-date h2 span { color: transparent; -webkit-text-stroke: 2px #000; }
.nw-day:first-of-type .nw-date h2 b { background: linear-gradient(var(--v), var(--v)) 0 62% / 100% 74% no-repeat; }   /* the newest day */
.nw-date p { margin-top: 13px; max-width: 14rem; font: 700 .72rem/1.45 var(--t); letter-spacing: .13em; text-transform: uppercase; color: #555; }
.nw-date p b { display: block; color: #000; font-weight: 700; font-variant-numeric: tabular-nums; }

/* one change */
.nw-list > li { display: grid; grid-template-columns: 5.5rem minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; gap: 0 clamp(16px, 2.3vw, 36px); align-items: start; padding: 18px 0 15px; border-bottom: 1px solid #000; }
.nw-list > li[hidden] { display: none; }
.nw-list > li:last-child { border-bottom: 0; }
.nw-tag { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 2px; padding: 5px 10px 2px 9px; font: italic 900 1.08rem/1 var(--d); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: #000; transform: skewX(-9deg); }
[data-tag="new"] > .nw-tag { background: #000; color: var(--v); }
[data-tag="better"] > .nw-tag { background: var(--v); }
[data-tag="fixed"] > .nw-tag { box-shadow: inset 0 0 0 2px #000; }
[data-tag="removed"] > .nw-tag { background: repeating-linear-gradient(-60deg, #CFCFC9 0 5px, #EDEDE8 5px 10px); }   /* tape: what is not there */
.nw-list h3 { grid-column: 2; grid-row: 1 / span 2; font: italic 900 clamp(1.75rem, 2.45vw, 2.2rem)/.94 var(--d); text-transform: uppercase; letter-spacing: -.003em; overflow-wrap: break-word; }
.nw-list p { grid-column: 3; grid-row: 1 / span 2; padding-top: 2px; max-width: 39rem; font-size: 1rem; line-height: 1.52; color: #2E2E2E; }
.nw-list time { grid-column: 1; grid-row: 2; margin-top: 9px; font: 700 .72rem/1.2 var(--t); letter-spacing: .12em; text-transform: uppercase; color: #555; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nw-body a:not(.btn) { color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .nw-body a:not(.btn):hover { background: var(--v); } }

/* earlier: the same rows, set smaller */
.nw-early .nw-date h2 { font-size: clamp(3.2rem, 5vw, 4.6rem); }
.nw-early .nw-list > li { padding: 13px 0 12px; }
.nw-early .nw-list h3 { font-size: clamp(1.45rem, 1.9vw, 1.65rem); padding-top: 3px; }
.nw-early .nw-list p { font-size: .95rem; line-height: 1.5; }
.nw-early .nw-tag { font-size: .95rem; padding: 4px 8px 1px 7px; }

/* the foot of the log: where to say that something is wrong */
.nw-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 3px solid #000; }
.nw-end p { flex: 1 1 19rem; max-width: 41rem; font-size: 1.02rem; line-height: 1.55; color: #1B1B1B; }
.nw-end p b { color: #000; }

@media (max-width: 1040px) {
  .nw-day { grid-template-columns: minmax(0, 1fr); }
  .nw-date { position: static; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 22px; padding: 16px 0 14px; border-bottom: 1px solid #000; }
  .nw-date p { margin: 0 0 2px; max-width: 26rem; }
  .nw-list > li { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .nw-list h3 { grid-row: 1; }
  .nw-list p { grid-column: 2; grid-row: 2; padding-top: 6px; }
  .nw-list time { margin-top: 12px; }
}
@media (max-width: 760px) {
  .nw-tabs button { flex: 1 1 auto; padding: 14px 4px 9px; font-size: 1.14rem; }
  .nw-tabs button > span { justify-content: center; gap: 5px; }
  .nw-date h2 { font-size: 3.5rem; }
  .nw-early .nw-date h2 { font-size: 3.1rem; }
  .nw-date h2 span { -webkit-text-stroke-width: 1.5px; }
  .nw-list > li { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; gap: 0 12px; padding: 15px 0 14px; }
  .nw-tag { margin: 0 0 9px 2px; }
  .nw-list time { grid-column: 2; grid-row: 1; align-self: center; margin: 0 0 7px; }
  .nw-list h3 { grid-column: 1 / -1; grid-row: 2; font-size: 1.85rem; }
  .nw-list p { grid-column: 1 / -1; grid-row: 3; padding-top: 5px; font-size: 1rem; }
  .nw-early .nw-list h3 { font-size: 1.55rem; padding-top: 0; }
  .nw-early .nw-list p { font-size: .97rem; }
  .nw-end .btn { width: 100%; }
}
@media (max-width: 480px) { .nw-tabs button i { display: none; } }
@media print {
  .nw-tabs, .nw-end { display: none !important; }
  .nw-date { position: static; }
}
