/**
 * Newsletter pages (newsletter-v3.php): light tinted hero with one white action card, then the
 * three newest articles on the sign-up and confirmed states. Solid colours only.
 */

.acma-v3 .v3-nlhero .v3-hero__title { max-width: 16ch; }
.acma-v3 .v3-nlhero .v3-hero__lead { max-width: 46ch; }

/* The action card: white on the hero tint, hairline ring and the form card shadow. */
.v3-nlcard {
	position: relative; z-index: 2; width: 100%; max-width: 620px; justify-self: end;
	padding: clamp(22px, 2.4vw, 44px);
	border-radius: clamp(16px, 1.4vw, 28px);
	background: #fff;
	box-shadow: 0 40px 80px -48px rgba(14, 22, 34, .35), 0 0 0 1px var(--v3-line);
}
.acma-v3 .v3-nlcard__title { margin: 0 0 18px; font-size: clamp(19px, .4vw + 15px, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--v3-ink); }
.v3-nlcard__tick { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 18px; border-radius: 50%; background: var(--accent, #0d737c); color: #fff; }
.v3-nlcard__tick svg { width: 26px; height: 26px; }

.acma-v3 .v3-nlnote {
	margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--v3-surface);
	box-shadow: inset 4px 0 0 var(--v3-muted);
	font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--v3-ink);
}
.acma-v3 .v3-nlnote.is-ok { box-shadow: inset 4px 0 0 var(--v3-green-text); }
.acma-v3 .v3-nlnote.is-error { box-shadow: inset 4px 0 0 var(--v3-magenta, #b4236b); }
.acma-v3 .v3-nlnote:focus { outline: 3px solid var(--v3-royal, #005f9f); outline-offset: 3px; }

/* Action forms: confirm, preferences, unsubscribe, subscribe again. */
.v3-nlact { display: grid; gap: 18px; justify-items: start; margin: 0; }
.v3-nlact > .v3-field, .v3-nlact .v3-nltopics, .v3-nlact .cf-turnstile { width: 100%; }
/* Turnstile is invisible until it needs an interaction: do not leave an empty grid row. */
.v3-nlact .cf-turnstile { margin-top: -18px; }
.acma-v3 .v3-nlact__who { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 16px; color: var(--v3-ink); }
.acma-v3 .v3-nlact__who span { color: var(--v3-muted); }
.acma-v3 .v3-nlact__who strong { font-weight: 700; word-break: break-all; }
.acma-v3 .v3-nlact__hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--v3-muted); }
.acma-v3 .v3-nlact__hint a { color: var(--v3-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acma-v3 .v3-nlact__hint a:hover { color: var(--v3-blue-2, #004a7c); }
.acma-v3 .v3-nlact__alt { margin: 22px 0 0; }
.v3-nlact--quiet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--v3-line); }
.acma-v3 .v3-nlbtn-quiet {
	min-height: 44px; padding: 0 18px; border: 1px solid var(--v3-field-line, #c9d0d9); border-radius: 999px; background: #fff;
	font-family: inherit; font-size: 15px; font-weight: 600; color: var(--v3-ink); cursor: pointer; transition: border-color .25s, color .25s;
}
.acma-v3 .v3-nlbtn-quiet:hover { border-color: var(--v3-magenta, #b4236b); color: var(--v3-magenta, #b4236b); }
.acma-v3 .v3-nlbtn-quiet:focus-visible { outline: 3px solid var(--v3-royal, #005f9f); outline-offset: 3px; }

.v3-nltopics { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.acma-v3 .v3-nltopics legend { margin: 0 0 var(--v3-lbl-gap); padding: 0; font-size: var(--v3-lbl-fs); font-weight: 600; line-height: 1.4; color: var(--v3-ink); }
.acma-v3 .v3-nltopic {
	display: flex; align-items: center; gap: 12px; min-height: var(--v3-fld-h); padding: 10px 16px;
	border: 1px solid var(--v3-field-line, #c9d0d9); border-radius: 12px; background: #fff;
	font-size: 16px; font-weight: 500; color: var(--v3-ink); cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.acma-v3 .v3-nltopic:hover { border-color: var(--v3-field-hover); }
.acma-v3 .v3-nltopic:has(input:checked) { border-color: var(--v3-royal, #005f9f); box-shadow: inset 0 0 0 1px var(--v3-royal, #005f9f); }
.acma-v3 .v3-nltopic input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--v3-royal, #005f9f); }
.acma-v3 .v3-nltopic:has(input:focus-visible) { outline: 2px solid var(--v3-royal, #005f9f); outline-offset: 2px; }

.acma-v3 .v3-nllinks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

/* Recent articles. */
.v3-nlposts { padding-block: var(--v3-section-sm, clamp(56px, 5.2vw, 104px)); }
.v3-nlposts.is-white { background: #fff; }
.v3-nlposts__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.acma-v3 .v3-nlposts__title { margin: 0; font-size: var(--v3-title-fs); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; color: var(--v3-ink); }
.v3-nlposts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); margin: var(--v3-head-gap) 0 0; padding: 0; list-style: none; }
.v3-nlposts__list.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1200px; }
.v3-nlposts__list.is-1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.acma-v3 .v3-nlpost {
	display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2vw, 36px);
	border-radius: clamp(14px, 1vw, 20px); background: var(--v3-surface);
	box-shadow: inset 0 4px 0 var(--accent);
}
.acma-v3 .v3-nlpost.is-royal { --accent: var(--v3-royal, #005f9f); }
.acma-v3 .v3-nlpost.is-violet { --accent: var(--v3-violet, #5b3fc4); }
.acma-v3 .v3-nlpost.is-teal { --accent: var(--v3-teal, #0d737c); }
.acma-v3 .v3-nlpost__date { font-size: 14px; color: var(--v3-muted); }
.acma-v3 .v3-nlpost__title { font-size: clamp(19px, .45vw + 14px, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--v3-ink); text-decoration: none; }
.acma-v3 .v3-nlpost__title:hover, .acma-v3 .v3-nlpost__title:focus-visible { color: var(--v3-blue); text-decoration: underline; text-underline-offset: 4px; }
.acma-v3 .v3-nlpost__text { font-size: 16px; line-height: 1.6; color: var(--v3-text); }

@media (max-width: 1199.98px) {
	.v3-nlcard { justify-self: start; max-width: 680px; }
	.v3-nlposts__list { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}
html.translated-ltr .acma-v3 .v3-nlpost__title,
html.translated-ltr .acma-v3 .v3-nlposts__title { letter-spacing: normal; line-height: 1.4; }
