/* Talk Home News. Loads after base.css and reuses its header, footer,
   buttons, tags and app section. */

.nw-page :where(ul) { list-style: none; margin: 0; padding: 0; }
.nw-page .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1165af; }

/* Listing head */
.nw-head { padding: 32px 0 8px; }
.nw-intro { display: grid; gap: 12px; justify-items: start; max-width: 720px; }
.nw-lead { font-size: 16px; line-height: 26px; color: #4b5563; }
.nw-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; }
.nw-filter::-webkit-scrollbar { display: none; }
.nw-filter a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #d5e3ef; border-radius: 999px; font-size: 14px; font-weight: 500; color: #111827; text-decoration: none; background: #fff; }
.nw-filter a:hover { border-color: #1165af; color: #1165af; }
.nw-filter a.is-current { background: #1165af; border-color: #1165af; color: #fff; }

/* Cards */
.nw-list { padding: 24px 0 40px; }
.nw-grid { display: grid; gap: 16px; }
.nw-grid:empty { display: none; }
.nw-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); transition: box-shadow .2s, transform .2s; }
.nw-card:hover { box-shadow: 0 10px 28px rgba(17, 24, 39, .10); transform: translateY(-2px); }
.nw-media { display: block; aspect-ratio: 1.91 / 1; background: #e1eff8; overflow: hidden; }
.nw-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nw-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e1eff8 0%, #f4fcff 60%, #fdfde6 100%); }
.nw-noimg img { width: 46px; height: auto; opacity: .9; }
.nw-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; line-height: 18px; color: #6b7280; }
.nw-dot { width: 3px; height: 3px; border-radius: 50%; background: #9ca3af; }
.nw-title { font-size: 18px; line-height: 26px; font-weight: 600; color: #111827; margin: 0; }
.nw-title a { color: inherit; text-decoration: none; }
.nw-title a:hover { color: #1165af; }
.nw-excerpt { font-size: 14px; line-height: 22px; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-more { margin-top: auto; align-self: flex-start; font-size: 14px; }
.nw-flag { align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #111827; background: #ebf304; border-radius: 999px; padding: 4px 10px; }
.nw-card.is-featured { margin-bottom: 16px; }
.nw-card.is-featured .nw-title { font-size: 22px; line-height: 30px; }

/* Pagination */
.nw-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.nw-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #d5e3ef; border-radius: 999px; font-size: 14px; font-weight: 500; color: #111827; text-decoration: none; background: #fff; }
.nw-pages .page-numbers.current { background: #1165af; border-color: #1165af; color: #fff; }
.nw-pages .page-numbers.dots { border: 0; min-width: 0; }
.nw-pages a.page-numbers:hover { border-color: #1165af; color: #1165af; }
.nw-empty { padding: 48px 0; text-align: center; font-size: 16px; color: #4b5563; }

/* Article */
.nw-article-head { padding: 28px 0 24px; }
.nw-head-in { display: grid; gap: 14px; }
.nw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 18px; color: #6b7280; }
.nw-crumbs a { color: #1165af; text-decoration: none; }
.nw-crumbs a:hover { text-decoration: underline; }
.nw-h1 { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; color: #111827; margin: 0; }
.nw-standfirst { font-size: 18px; line-height: 28px; color: #374151; }
.nw-updated { font-size: 13px; color: #6b7280; }
.nw-hero { margin: 0 0 28px; }
.nw-hero img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* Article body: what editors write in the post editor */
.nw-prose { font-size: 16px; line-height: 28px; color: #1f2937; overflow-wrap: break-word; }
.nw-prose > * + * { margin-top: 20px; }
.nw-prose h2 { font-size: 24px; line-height: 32px; font-weight: 700; color: #111827; margin-top: 40px; }
.nw-prose h3 { font-size: 20px; line-height: 28px; font-weight: 600; color: #111827; margin-top: 32px; }
.nw-prose h4 { font-size: 17px; line-height: 26px; font-weight: 600; color: #111827; margin-top: 28px; }
.nw-prose a { color: #1165af; text-decoration: underline; text-underline-offset: 3px; }
.nw-prose strong, .nw-prose b { font-weight: 600; color: #111827; }
.nw-prose ul, .nw-prose ol { padding-left: 24px; list-style: revert; }
.nw-prose li + li { margin-top: 8px; }
.nw-prose li::marker { color: #1165af; }
.nw-prose blockquote { margin-inline: 0; padding: 16px 20px; border-left: 4px solid #0098da; background: #f4fcff; border-radius: 0 12px 12px 0; font-size: 18px; line-height: 29px; font-weight: 500; color: #111827; }
.nw-prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; font-weight: 400; color: #6b7280; }
.nw-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.nw-prose figure { margin-inline: 0; }
.nw-prose figcaption { margin-top: 8px; font-size: 13px; line-height: 19px; color: #6b7280; text-align: center; }
.nw-prose hr { border: 0; border-top: 1px solid #e3eaf2; margin: 32px 0; }
.nw-prose .wp-block-table { margin-inline: 0; }
.nw-table { overflow-x: auto; border: 1px solid #d5e3ef; border-radius: 14px; }
.nw-prose table { width: 100%; min-width: 100%; border-collapse: collapse; font-size: 15px; line-height: 23px; }
.nw-prose th, .nw-prose td { border: 0; border-bottom: 1px solid #e3eaf2; padding: 14px 16px; text-align: left; vertical-align: top; }
.nw-prose tr > * + * { border-left: 1px solid #e3eaf2; }
.nw-prose tbody tr:last-child > * { border-bottom: 0; }
.nw-prose thead th, .nw-prose tr:first-child th, .nw-prose thead td { background: #f4fcff; font-weight: 600; color: #111827; }
.nw-prose .wp-block-table figcaption { text-align: left; }
.nw-prose iframe, .nw-prose video { max-width: 100%; border-radius: 14px; }
.nw-prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #ebf304; color: #111827; font-weight: 600; text-decoration: none; }

/* Article footer */
.nw-article-foot { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid #e3eaf2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #111827; }
.nw-share .links { display: flex; gap: 8px; }
.nw-sh { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d5e3ef; background: #fff; color: #1165af; cursor: pointer; padding: 0; }
.nw-sh:hover { background: #1165af; border-color: #1165af; color: #fff; }
.nw-sh svg { width: 18px; height: 18px; }
.nw-sh .done { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #111827; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.nw-back { font-size: 14px; }

.nw-cta { margin: 28px 0 0; background: #f4fcff; border-radius: 20px; padding: 22px; display: grid; gap: 16px; }
.nw-cta b { display: block; font-size: 18px; line-height: 26px; font-weight: 700; color: #111827; }
.nw-cta p { font-size: 15px; line-height: 24px; color: #4b5563; }
.nw-cta .tha-btn { justify-self: start; }
.nw-cta .media { grid-column: 1 / -1; font-size: 14px; }
.nw-cta .media b { display: inline; font-size: inherit; }
.nw-cta .media a { color: #1165af; }

.nw-related { padding: 40px 0 16px; }
.nw-related .tha-h1 { margin-bottom: 20px; }
.nw-single .nw-article { padding-bottom: 8px; }

@media (min-width: 600px) {
	.nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nw-filter { margin: 0; padding: 4px 0; flex-wrap: wrap; overflow: visible; }
	.nw-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (min-width: 960px) {
	.nw-head { padding: 56px 0 8px; }
	.nw-intro { gap: 16px; }
	.nw-lead { font-size: 18px; line-height: 29px; }
	.nw-filter { margin-top: 28px; }
	.nw-list { padding: 32px 0 64px; }
	.nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.nw-body { padding: 22px 22px 24px; }
	.nw-card.is-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 24px; }
	.nw-card.is-featured { align-items: center; }
	.nw-card.is-featured .nw-media { aspect-ratio: auto; background: none; padding: 16px 0 16px 16px; }
	.nw-card.is-featured .nw-media img { height: auto; object-fit: contain; border-radius: 12px; }
	.nw-card.is-featured .nw-media .nw-noimg { aspect-ratio: 1.91 / 1; border-radius: 12px; }
	.nw-card.is-featured .nw-body { padding: 40px; justify-content: center; gap: 14px; }
	.nw-card.is-featured .nw-title { font-size: 30px; line-height: 40px; letter-spacing: -.01em; }
	.nw-card.is-featured .nw-excerpt { font-size: 16px; line-height: 26px; -webkit-line-clamp: 4; }
	.nw-card.is-featured .nw-more { margin-top: 8px; }

	.nw-article-head { padding: 48px 0 32px; }
	.nw-head-in { gap: 18px; }
	.nw-prose table { font-size: 17px; line-height: 26px; }
	.nw-prose th, .nw-prose td { padding: 16px 20px; }
	.nw-h1 { font-size: 44px; line-height: 54px; }
	.nw-standfirst { font-size: 20px; line-height: 32px; }
	.nw-hero { margin-bottom: 40px; }
	.nw-hero img { border-radius: 24px; }
	.nw-prose { font-size: 18px; line-height: 31px; }
	.nw-prose > * + * { margin-top: 24px; }
	.nw-prose h2 { font-size: 30px; line-height: 40px; margin-top: 48px; }
	.nw-prose h3 { font-size: 23px; line-height: 32px; margin-top: 36px; }
	.nw-article-foot { margin-top: 48px; }
	.nw-cta { padding: 28px 32px; margin-top: 32px; }
	.nw-related { padding: 64px 0 16px; }
	.nw-related .tha-h1 { margin-bottom: 28px; }
}

/* Article layout with the contents list */
.nw-layout { display: grid; gap: 24px; }
.nw-main { min-width: 0; }
.nw-prose :is(h2, h3) { scroll-margin-top: 24px; }
.nw-toc-box { background: #f4fcff; border: 1px solid #d5e3ef; border-radius: 16px; }
.nw-toc-box summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 15px; line-height: 22px; font-weight: 600; color: #111827; cursor: pointer; list-style: none; }
.nw-toc-box summary::-webkit-details-marker { display: none; }
.nw-toc-box summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #1165af; border-bottom: 2px solid #1165af; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.nw-toc-box[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.nw-toc ol { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; gap: 2px; }
.nw-toc li a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 20px; color: #374151; text-decoration: none; border-left: 2px solid transparent; }
.nw-toc li.l3 a { padding-left: 24px; font-size: 13px; color: #4b5563; }
.nw-toc li a:hover { background: #fff; color: #1165af; }
.nw-toc li a.is-active { background: #fff; color: #1165af; font-weight: 600; border-left-color: #1165af; border-radius: 0 10px 10px 0; }

@media (min-width: 1100px) {
	.nw-layout.has-toc { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
	.nw-layout.has-toc .nw-toc { grid-column: 1; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
	.nw-layout.has-toc .nw-main { grid-column: 2; grid-row: 1; }
	.nw-toc-box summary { cursor: default; padding: 18px 20px 10px; }
	.nw-toc-box summary::after { display: none; }
	.nw-toc ol { padding: 0 12px 16px; }
}
