/* /news and /news/*. Loaded after home-v3.css. */

.sw-nav a[aria-current="page"] { color: var(--sw-mustard); }

/* News list */
.nw-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem); }
.nw-hero h1 { font-weight: 900; font-size: clamp(3.5rem, 11vw, 8rem); line-height: 1; letter-spacing: -0.035em; }
.sw .nw-hero p { max-width: 38rem; margin-top: 1rem; color: var(--sw-muted); font-size: 1.1875rem; }

.nw-list { padding-bottom: clamp(4rem, 8vw, 7rem); }
.nw-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sw-line); }
.nw-list li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 2rem; padding: clamp(1.75rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--sw-line); }
.nw-list h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.nw-list h2 a { text-decoration: none; }
.nw-list h2 a:hover { color: var(--sw-mustard); }
.sw .nw-list li div p { max-width: 44rem; margin-top: .75rem; color: var(--sw-muted); }
.sw .nw-date { color: var(--sw-sage); font-family: var(--sw-heading); font-weight: 700; font-size: 1rem; }
.nw-list .nw-date { padding-top: .5rem; }

/* Article */
.nw-article { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.nw-article-head { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.nw-article-head h1 { max-width: 60rem; font-weight: 900; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.sw .nw-back { margin-bottom: 1.5rem; font-family: var(--sw-heading); font-weight: 700; }
.nw-back a { text-decoration: none; }
.nw-back a:hover { color: var(--sw-mustard); }
.sw .nw-article-head .nw-date { margin-top: 1.25rem; }

/* The article text sits in a cream box so it's easier to read. Colours in here are
   dark on light, unlike the rest of the site. */
.nw-body { padding: clamp(1.75rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem); border-radius: 24px; background: var(--sw-text); color: var(--sw-ink); font-size: 1.125rem; font-weight: 400; line-height: 1.7; }
.sw .nw-body > * { max-width: 44rem; margin-inline: 0; }
.sw .nw-body p { margin-block: 0 1.25rem; }
.sw .nw-body > p:first-child { font-size: 1.3125rem; line-height: 1.5; }
.sw .nw-body h2 { margin-block: clamp(2.25rem, 5vw, 3.25rem) .85rem; color: var(--sw-ink); font-size: clamp(1.6rem, 3vw, 2.125rem); line-height: 1.15; }
.nw-body ul { margin-block: 0 1.25rem; padding-left: 1.35rem; }
.nw-body ol { margin-block: 0 1.25rem; padding-left: 1.5rem; }
.nw-body li { margin-bottom: .5rem; }
.nw-body code { padding: .1em .35em; border-radius: 5px; background: rgba(28, 26, 22, .09); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
.nw-body blockquote { margin-block: 0 1.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--sw-forest); border-radius: 0 14px 14px 0; background: #fffef6; }
.sw .nw-body blockquote p { margin: 0; }
.sw .nw-body blockquote p + p { margin-top: .75rem; }
.nw-body li::marker { color: var(--sw-rust); font-weight: 700; }
.nw-body a { color: var(--sw-forest); font-weight: 500; overflow-wrap: anywhere; }
.nw-body a:hover { color: var(--sw-rust); }
.nw-body figure { margin-block: 2rem; }
.nw-body figure img { width: 100%; height: auto; border-radius: 16px; }
.sw .nw-body figcaption { margin-top: .75rem; color: rgba(28, 26, 22, .72); font-size: .9375rem; line-height: 1.45; }

/* After the article */
.nw-cta { margin-bottom: clamp(3rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 5rem) 0; background: var(--sw-sage); color: var(--sw-ink); }
.nw-cta h2 { max-width: 44rem; color: var(--sw-ink); font-weight: 900; font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.sw .nw-cta p { max-width: 36rem; margin: 1rem 0 1.75rem; color: var(--sw-ink); font-size: 1.125rem; }
.nw-cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.sw-btn--ink { background: var(--sw-ink); color: var(--sw-text) !important; }
.sw-btn--ink:hover { background: #000; }
.sw-btn--outline { border-color: var(--sw-ink); color: var(--sw-ink) !important; }

@media (max-width: 760px) {
  .nw-list li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .nw-list .nw-date { padding-top: 0; }
  .nw-body { border-radius: 18px; font-size: 1.0625rem; }
  .sw .nw-body > p:first-child { font-size: 1.1875rem; }
}
@media (max-width: 480px) {
  .nw-cta-buttons .sw-btn { width: 100%; }
}
