/* DareDive News: a broadsheet inside the site. Serif headlines (Instrument Serif), Urbanist for everything else,
   hairline column rules, and the same onyx, ivory and champagne as the rest of the site. */
.nw {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --rule: color-mix(in srgb, var(--ivory) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--ivory) 55%, transparent);
  padding: 0 var(--gut);
}
.nw h1, .nw h2, .nw h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
.nw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* masthead */
.nw-mast { padding-top: clamp(20px, 4vh, 40px); text-align: center; }
.nw-mast__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.nw-date { margin: 0; color: var(--mute); font-size: .92rem; }
.nw-search { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0 .4rem 0 1rem; transition: border-color .4s; }
.nw-search:focus-within { border-color: var(--gold); }
.nw-search input { width: clamp(130px, 22vw, 260px); min-height: 40px; border: 0; background: transparent; color: var(--ivory); font: 400 16px/1 var(--f-sans); outline: none; }
.nw-search input::placeholder { color: var(--mute); }
.nw-search button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; }
.nw-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nw-title { display: inline-block; margin-top: clamp(14px, 2.4vh, 26px); text-decoration: none; font: 400 clamp(3rem, 1.4rem + 5.6vw, 7rem)/.92 var(--serif); letter-spacing: -.02em; }
.nw-title em { color: var(--gold); }
.nw-tag { margin: .6rem 0 0; color: var(--mute); }
.nw-tabs { display: flex; justify-content: center; gap: clamp(1.1rem, 3vw, 2.6rem); margin-top: clamp(14px, 2.4vh, 24px); padding: 12px 0; border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nw-tabs::-webkit-scrollbar { display: none; }
.nw-tabs a { text-decoration: none; font: 500 .8rem/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .72; padding: .5em 0; border-bottom: 1px solid transparent; transition: opacity .4s, border-color .4s; }
.nw-tabs a:hover { opacity: 1; }
.nw-tabs a[aria-current] { opacity: 1; border-color: var(--gold); color: var(--gold-2); }
@media (max-width: 700px) { .nw-tabs { justify-content: flex-start; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); } .nw-date { font-size: .8rem; } }
@media (max-width: 460px) { .nw-mast__top { flex-direction: column-reverse; align-items: stretch; } .nw-search input { width: 100%; } .nw-date { text-align: left; } }

/* shared bits */
.nw a { color: inherit; }
.nw figure { margin: 0; overflow: hidden; background: linear-gradient(135deg, #1b1814, #0f0e0c); }
.nw figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; transition: transform 1.2s var(--ease); }
.nw a:hover figure img { transform: scale(1.03); }
.nw-ph { display: block; width: 100%; height: 100%; }
.nw-meta { display: flex; flex-wrap: wrap; gap: .3em .9em; margin: .7rem 0 0; font-size: .82rem; color: var(--mute); }
.nw-meta span { color: var(--gold); }
.nw-h { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.nw-h--big { font-size: clamp(2.6rem, 1.4rem + 4.5vw, 5.4rem); line-height: 1; }
.nw-empty { padding: 3rem 0; color: var(--mute); text-align: center; }

/* front page: the lead story and the latest rail, split by a column rule */
.nw-front { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0; padding: clamp(28px, 5vh, 48px) 0; border-bottom: 1px solid var(--rule); }
.nw-lead a { display: grid; gap: 0; text-decoration: none; }
.nw-lead figure { aspect-ratio: 16 / 10; }
.nw-lead h2 { margin: 1.2rem 0 0; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.9rem); line-height: 1.02; text-wrap: balance; transition: color .5s var(--ease); }
.nw-lead p:not(.nw-meta) { margin: .9rem 0 0; max-width: 62ch; color: color-mix(in srgb, var(--ivory) 78%, transparent); font-size: clamp(1rem, .96rem + .25vw, 1.18rem); }
.nw-lead a:hover h2 { color: var(--gold-2); }
.nw-front .nw-lead { padding-right: clamp(20px, 3vw, 44px); }
.nw-rail { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule); }
.nw-lines { list-style: none; margin: 1rem 0 0; padding: 0; }
.nw-lines li { border-top: 1px solid var(--rule); }
.nw-lines a { display: block; padding: 1.05rem 0; text-decoration: none; }
.nw-lines h3 { margin: 0; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.18; transition: color .4s; }
.nw-lines a:hover h3 { color: var(--gold-2); }
.nw-lines .nw-meta { margin-top: .45rem; }
.nw-lines--compact h3 { font-size: 1.12rem; }
@media (max-width: 900px) {
  .nw-front { grid-template-columns: 1fr; }
  .nw-front .nw-lead { padding-right: 0; }
  .nw-rail { padding-left: 0; border-left: 0; margin-top: 2rem; padding-top: 1.4rem; border-top: 3px double var(--rule-strong); }
}

/* bands of cards */
.nw-band { padding: clamp(32px, 6vh, 60px) 0; border-bottom: 1px solid var(--rule); }
.nw-band--first { padding-top: clamp(28px, 5vh, 50px); }
.nw-band__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.nw-band__head a { text-decoration: none; color: var(--gold-2); font-size: .92rem; white-space: nowrap; }
.nw-band__head a:hover { color: var(--ivory); }
.nw-band__head--big { display: grid; gap: .8rem; justify-items: start; margin-bottom: 2rem; }
.nw-band__head--big p { margin: 0; max-width: 60ch; color: var(--mute); }
.nw-grid { display: grid; gap: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 34px); }
.nw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nw-card a { display: block; text-decoration: none; }
.nw-card figure { aspect-ratio: 16 / 10; }
.nw-card h3 { margin: .95rem 0 0; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.12; text-wrap: balance; transition: color .4s; }
.nw-card--s h3 { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem); }
.nw-card p:not(.nw-meta) { margin: .55rem 0 0; color: var(--mute); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card a:hover h3 { color: var(--gold-2); }
.nw-lead--wide { margin-bottom: clamp(30px, 5vh, 50px); padding-bottom: clamp(30px, 5vh, 50px); border-bottom: 1px solid var(--rule); }
.nw-lead--wide a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.nw-lead--wide h2 { margin-top: 0; }
@media (max-width: 1000px) { .nw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .nw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nw-lead--wide a { grid-template-columns: 1fr; } .nw-lead--wide h2 { margin-top: 1.2rem; } }
@media (max-width: 600px) {
  .nw-grid--3 { grid-template-columns: 1fr; }
  /* topic rows swipe sideways on phones, so the front page stays short */
  .nw-scroll { display: flex; overflow-x: auto; gap: 16px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .nw-scroll::-webkit-scrollbar { display: none; }
  .nw-scroll > * { flex: 0 0 72%; }
}

.nw-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); }
.nw-guides a { display: grid; gap: .6rem; height: 100%; padding: 1.4rem; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; transition: border-color .5s var(--ease), background .5s var(--ease); }
.nw-guides a:hover { border-color: var(--gold); background: color-mix(in srgb, var(--ivory) 3%, transparent); }
.nw-guides h3 { margin: 0; font-size: 1.3rem; line-height: 1.15; }
.nw-guides p { margin: 0; color: var(--mute); font-size: .92rem; }
@media (max-width: 1000px) { .nw-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nw-guides { grid-template-columns: 1fr; } }

.nw-more { margin: 0; padding: clamp(28px, 5vh, 48px) 0; text-align: center; border-bottom: 1px solid var(--rule); }
.nw-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(30px, 5vh, 50px); padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--mute); font-size: .92rem; }
.nw-pager a { text-decoration: none; color: var(--gold-2); }

.nw-cta { display: grid; gap: .9rem; justify-items: start; margin: clamp(36px, 6vh, 64px) 0; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--rule); border-radius: 26px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%); }
.nw-cta h2 { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.05; }
.nw-cta p { margin: 0; max-width: 60ch; color: var(--mute); }
.nw-cta div { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

/* a story */
.nw-story__head { max-width: 980px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) 0 clamp(24px, 4vh, 40px); text-align: center; }
.nw-story__head .pg-crumbs { justify-content: center; }
.nw-story__head h1 { margin: 1.2rem 0 0; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5.2rem); line-height: 1.02; text-wrap: balance; }
.nw-standfirst { margin: 1.4rem auto 0; max-width: 62ch; font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); font-weight: 300; color: color-mix(in srgb, var(--ivory) 82%, transparent); }
.nw-byline { margin: 1.2rem 0 0; color: var(--mute); font-size: .9rem; }
.nw .nw-hero { max-width: 1100px; margin: 0 auto; aspect-ratio: 2 / 1; border-radius: 4px; }
.nw-story__grid { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 320px); justify-content: center; gap: clamp(30px, 5vw, 80px); padding: clamp(32px, 6vh, 64px) 0; border-bottom: 1px solid var(--rule); }
.nw-body { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); line-height: 1.8; color: color-mix(in srgb, var(--ivory) 90%, transparent); }
.nw-body > * { margin: 0; }
.nw-body > * + * { margin-top: 1.25em; }
.nw-body > p:first-child::first-letter { float: left; font: 400 4.6em/.78 var(--serif); color: var(--gold); margin: .06em .1em 0 0; }
.nw-body h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); line-height: 1.12; margin-top: 1.8em; color: var(--ivory); }
.nw-body ul, .nw-body ol { padding-left: 1.2em; }
.nw-body li::marker { color: var(--gold); }
.nw-body blockquote { margin-left: 0; padding-left: 1.2em; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4em; line-height: 1.3; }
.nw-sources { margin-top: 2.4em !important; padding-top: 1.4em; border-top: 1px solid var(--rule); font-size: .95rem; }
.nw-sources h2 { margin: 0 0 .6em; font-size: 1.4rem; }
.nw-sources a { color: var(--gold-2); overflow-wrap: anywhere; }
.nw-discuss { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2em !important; }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font-size: .9rem; color: var(--mute); }
.nw-share a, .nw-share button { color: var(--ivory); text-decoration: none; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; border-bottom: 1px solid var(--rule); }
.nw-share a:hover, .nw-share button:hover { color: var(--gold-2); border-color: var(--gold); }
.nw-side { position: sticky; top: 100px; align-self: start; display: grid; gap: 1.6rem; }
.nw-side__box { padding-top: 1rem; border-top: 3px double var(--rule-strong); }
.nw-side__svc { padding: 1.4rem; border: 1px solid var(--rule); border-radius: 18px; display: grid; gap: .7rem; }
.nw-side__svc h2 { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.nw-side__svc p { margin: 0; color: var(--mute); font-size: .92rem; }
.nw-side__svc a { color: var(--gold-2); text-decoration: none; }
@media (max-width: 960px) { .nw-story__grid { grid-template-columns: minmax(0, 680px); } .nw-side { position: static; } }

/* the contact section reads as part of the paper */
.nw .pg-contact { padding-left: 0; padding-right: 0; }
