/* White Child - Magazine. Sem fontes externas, sem frameworks. */
:root {
	--nm-bg: #ffffff;
	--nm-soft: #f2f5f9;
	--nm-ink: #12161d;
	--nm-muted: #4d5766;
	--nm-line: #e0e5ec;
	--nm-dark: #14181f;
	--nm-accent: #0b6bdc;
	--nm-accent-dark: #0857b4;
	--nm-w: 1180px;
	--nm-gap: 28px;
	--nm-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--nm-bg);
	color: var(--nm-ink);
	font-family: var(--nm-font);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--nm-accent); text-decoration: none; }
a:hover { color: var(--nm-accent-dark); }
:focus-visible { outline: 3px solid var(--nm-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: var(--nm-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nm-skip {
	position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--nm-ink); color: #fff;
	padding: 10px 16px; border-radius: 4px;
}
.nm-skip:focus { top: 8px; color: #fff; }
.nm-wrap { width: 100%; max-width: var(--nm-w); margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.nm-topbar { background: var(--nm-dark); color: #d6dbe3; font-size: 13px; }
.nm-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.nm-topbar__date { text-transform: capitalize; }
.nm-topbar__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nm-topbar__menu a { color: #d6dbe3; }
.nm-topbar__menu a:hover { color: #fff; text-decoration: underline; }

/* ---------- Marca ---------- */
.nm-brand { background: var(--nm-bg); }
.nm-brand__in { padding-top: 22px; padding-bottom: 18px; }
.nm-logo { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.nm-logo a { color: var(--nm-ink); }
.nm-logo a:hover { color: var(--nm-accent); }
.nm-logo img { max-height: 64px; width: auto; }
.nm-tagline { margin: 6px 0 0; color: var(--nm-muted); font-size: 14px; }

/* ---------- Menu ---------- */
.nm-nav { position: relative; z-index: 20; background: var(--nm-bg); border-top: 1px solid var(--nm-line); border-bottom: 1px solid var(--nm-line); box-shadow: 0 6px 14px -12px rgba(18, 22, 29, .5); }
.nm-nav__in { display: flex; align-items: center; position: relative; }
.nm-menu { list-style: none; display: flex; flex-wrap: wrap; flex: 1; }
.nm-menu li { position: relative; }
.nm-menu a {
	display: block; padding: 15px 14px; color: var(--nm-ink); font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid transparent;
}
.nm-menu a:hover,
.nm-menu .current-menu-item > a,
.nm-menu .current-cat > a,
.nm-menu .current-menu-ancestor > a { color: var(--nm-accent); border-bottom-color: var(--nm-accent); }
.nm-menu ul {
	list-style: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--nm-bg);
	border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-accent); box-shadow: 0 12px 24px -12px rgba(18, 22, 29, .4);
}
.nm-menu ul a { text-transform: none; letter-spacing: 0; font-weight: 600; border-bottom: 0; padding: 10px 14px; }
.nm-nav__toggle { display: none; }
.nm-search-toggle {
	background: none; border: 0; padding: 12px; cursor: pointer; color: var(--nm-ink); margin-left: auto; border-radius: 4px;
}
.nm-search-toggle:hover { color: var(--nm-accent); }
.nm-search-pop {
	display: none; position: absolute; right: 16px; top: 100%; width: min(360px, calc(100% - 32px)); padding: 12px;
	background: var(--nm-bg); border: 1px solid var(--nm-line); border-top: 3px solid var(--nm-accent);
	box-shadow: 0 12px 24px -12px rgba(18, 22, 29, .4);
}
.nm-search-pop.is-open { display: block; }

.nm-searchform { display: flex; }
.nm-searchform input[type="search"] {
	flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--nm-line); border-right: 0;
	border-radius: 4px 0 0 4px; background: #fff; color: var(--nm-ink);
}
.nm-searchform button {
	border: 0; background: var(--nm-accent); color: #fff; padding: 0 14px; cursor: pointer; border-radius: 0 4px 4px 0;
}
.nm-searchform button:hover { background: var(--nm-accent-dark); }

@media (max-width: 899px) {
	.nm-nav__in { flex-wrap: wrap; }
	.nm-nav__toggle {
		display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 14px 0; cursor: pointer;
		font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: var(--nm-ink);
	}
	.nm-burger, .nm-burger::before, .nm-burger::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; position: relative; }
	.nm-burger::before { position: absolute; top: -6px; }
	.nm-burger::after { position: absolute; top: 6px; }
	.nm-menu { display: none; flex-basis: 100%; order: 3; flex-direction: column; border-top: 1px solid var(--nm-line); }
	.nm-nav.toggled .nm-menu { display: flex; }
	.nm-menu a { padding: 13px 4px; border-bottom: 1px solid var(--nm-line); }
	.nm-menu ul { position: static; display: block !important; border: 0; box-shadow: none; padding-left: 14px; }
	.nm-search-toggle { order: 2; }
	.nm-search-pop { right: 0; left: 0; width: auto; margin: 0 16px; }
	.nm-topbar__nav { display: none; }
	.nm-logo { font-size: 28px; }
}

/* ---------- Em alta ---------- */
.nm-ticker { border-bottom: 1px solid var(--nm-line); background: var(--nm-bg); }
.nm-ticker__in { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.nm-ticker__label {
	flex: none; background: var(--nm-dark); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .06em; padding: 6px 12px;
}
.nm-ticker__list { list-style: none; flex: 1; min-width: 0; }
.nm-ticker__list li { display: none; }
.nm-ticker__list li.is-active,
.nm-ticker:not(.is-js) .nm-ticker__list li:first-child { display: block; }
.nm-ticker__list a { display: block; color: var(--nm-ink); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-ticker__list a:hover { color: var(--nm-accent); }
.nm-ticker__nav { display: none; gap: 4px; }
.nm-ticker.is-js .nm-ticker__nav { display: flex; }
.nm-ticker__nav button {
	width: 28px; height: 28px; border: 1px solid var(--nm-line); background: #fff; color: var(--nm-ink); cursor: pointer;
	font-size: 18px; line-height: 1; border-radius: 3px;
}
.nm-ticker__nav button:hover { background: var(--nm-soft); }

/* ---------- Conteudo ---------- */
.nm-content { padding-top: 22px; padding-bottom: 40px; }
.nm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; margin-top: 28px; }
.nm-hero + .nm-layout { margin-top: 30px; }
.nm-main { min-width: 0; outline: 0; }
.nm-main--page { max-width: 820px; margin: 28px auto 0; }
@media (max-width: 991px) { .nm-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Destaque ---------- */
.nm-hero { display: grid; gap: 4px; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1.35fr 1fr; height: 460px; }
.nm-hero__item { position: relative; overflow: hidden; background: #0f2747; min-height: 0; }
.nm-hero__item--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.nm-hero__item--2 { grid-column: 3 / 5; grid-row: 1; }
.nm-hero__item--3 { grid-column: 3; grid-row: 2; }
.nm-hero__item--4 { grid-column: 4; grid-row: 2; }
.nm-hero--1 .nm-hero__item--1 { grid-column: 1 / 5; }
.nm-hero--2 .nm-hero__item--2 { grid-row: 1 / 3; }
.nm-hero--3 .nm-hero__item--3 { grid-column: 3 / 5; }
.nm-hero .nm-media { position: absolute; inset: 0; }
.nm-hero .nm-img, .nm-hero .nm-ph { width: 100%; height: 100%; object-fit: cover; }
.nm-hero__body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; pointer-events: none;
	background: linear-gradient(to top, rgba(8, 12, 18, .92) 0%, rgba(8, 12, 18, .6) 55%, rgba(8, 12, 18, 0) 100%);
}
.nm-hero__body a { pointer-events: auto; }
.nm-hero__title { margin: 8px 0 6px; font-size: 16px; line-height: 1.25; }
.nm-hero__title a { color: #fff; }
.nm-hero__title a:hover { color: #fff; text-decoration: underline; }
.nm-hero__item--1 .nm-hero__title { font-size: 28px; }
.nm-hero__item--2 .nm-hero__title { font-size: 21px; }
.nm-hero .nm-meta { color: #dfe5ee; }
.nm-hero .nm-img { transition: transform .6s ease; }
.nm-hero__item:hover .nm-img { transform: scale(1.04); }

@media (max-width: 899px) {
	.nm-hero { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
	.nm-hero__item--1, .nm-hero--1 .nm-hero__item--1 { grid-column: 1 / 3; grid-row: auto; height: 340px; }
	.nm-hero__item--2, .nm-hero--2 .nm-hero__item--2, .nm-hero--3 .nm-hero__item--3 { grid-column: 1 / 3; grid-row: auto; }
	.nm-hero__item--3, .nm-hero__item--4 { grid-column: auto; grid-row: auto; }
	.nm-hero--3 .nm-hero__item--3 { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
	.nm-hero { grid-template-columns: 1fr; grid-auto-rows: 230px; }
	.nm-hero__item--1 { height: 300px; }
	.nm-hero__item--1, .nm-hero__item--2, .nm-hero__item--3, .nm-hero__item--4,
	.nm-hero--3 .nm-hero__item--3, .nm-hero--2 .nm-hero__item--2 { grid-column: 1; }
	.nm-hero__item--1 .nm-hero__title { font-size: 23px; }
	.nm-hero__item--2 .nm-hero__title { font-size: 19px; }
}

/* ---------- Pecas comuns ---------- */
.nm-media { display: block; position: relative; overflow: hidden; background: #0f2747; }
.nm-img { width: 100%; height: 100%; object-fit: cover; }
.nm-ph { display: block; width: 100%; height: 100%; }
.nm-ph--1 { background: linear-gradient(135deg, #0d2a52, #0b6bdc); }
.nm-ph--2 { background: linear-gradient(135deg, #12161d, #2a3b57); }
.nm-ph--3 { background: linear-gradient(135deg, #0b3a7a, #3e8df0); }
.nm-ph--4 { background: linear-gradient(135deg, #1b2330, #0857b4); }
.nm-tag {
	display: inline-block; background: var(--nm-accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .05em; padding: 3px 8px; line-height: 1.4;
}
.nm-tag:hover { background: var(--nm-accent-dark); color: #fff; }
.nm-meta { margin: 0; font-size: 12.5px; color: var(--nm-muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.nm-meta__by { font-weight: 600; }
.nm-meta time::before, .nm-meta__by + time::before { content: none; }
.nm-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Secoes ---------- */
.nm-sec { margin-bottom: 38px; }
.nm-sec__head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--nm-accent); margin-bottom: 20px; }
.nm-sec__title { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.nm-sec__title span { display: inline-block; background: var(--nm-accent); color: #fff; padding: 8px 14px; }
.nm-sec__more { font-size: 13px; font-weight: 600; padding-bottom: 6px; }

.nm-card__title { font-size: 19px; margin: 8px 0 6px; }
.nm-card__title a, .nm-row__title a { color: var(--nm-ink); }
.nm-card__title a:hover, .nm-row__title a:hover { color: var(--nm-accent); }
.nm-card__excerpt { color: var(--nm-muted); font-size: 14.5px; margin: 8px 0 0; }
.nm-card .nm-media { aspect-ratio: 16 / 10; margin-bottom: 12px; }

.nm-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--nm-gap); }
.nm-feature__lead .nm-card__title { font-size: 23px; }
.nm-rows { display: flex; flex-direction: column; gap: 16px; }
.nm-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--nm-line); }
.nm-row:last-child { border-bottom: 0; padding-bottom: 0; }
.nm-row__media { aspect-ratio: 1 / 1; }
.nm-row__title { font-size: 15px; line-height: 1.3; margin: 0 0 5px; }
.nm-feature__rows .nm-row { grid-template-columns: 110px minmax(0, 1fr); }

.nm-grid { display: grid; gap: var(--nm-gap); }
.nm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.nm-items { display: flex; flex-direction: column; gap: 22px; }
.nm-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--nm-line); }
.nm-item:last-child { border-bottom: 0; padding-bottom: 0; }
.nm-item__media { aspect-ratio: 16 / 10; }
.nm-item .nm-card__title { margin-top: 8px; }

@media (max-width: 767px) {
	.nm-feature, .nm-grid--2, .nm-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.nm-item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.nm-item .nm-card__excerpt { display: none; }
	.nm-item .nm-card__title { font-size: 16px; }
	.nm-item .nm-meta { font-size: 12px; }
	.nm-feature__lead .nm-card__title { font-size: 21px; }
}

/* ---------- Sidebar ---------- */
.nm-side { display: flex; flex-direction: column; gap: 30px; }
.nm-widget { font-size: 14.5px; }
.nm-widget__title { margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--nm-ink); }
.nm-widget__title span { display: inline-block; background: var(--nm-ink); color: #fff; padding: 8px 14px; }
.nm-catlist { list-style: none; }
.nm-catlist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--nm-line); }
.nm-catlist a { color: var(--nm-ink); font-weight: 600; }
.nm-catlist a:hover { color: var(--nm-accent); }

/* ---------- Artigo ---------- */
.nm-crumbs { font-size: 13px; margin-bottom: 14px; }
.nm-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.nm-crumbs li + li::before { content: "/"; color: var(--nm-muted); margin-right: 8px; }
.nm-crumbs [aria-current] span { color: var(--nm-muted); }
.nm-article__head { margin-bottom: 18px; }
.nm-article__title { font-size: 36px; line-height: 1.15; margin: 12px 0 14px; letter-spacing: -.01em; }
.nm-article__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--nm-muted); margin: 0; }
.nm-article__meta a { color: var(--nm-ink); font-weight: 600; }
.nm-article__fig { margin: 0 0 24px; }
.nm-article__fig .nm-img { height: auto; aspect-ratio: 16 / 9; }
.nm-prose { font-size: 18px; line-height: 1.75; }
.nm-prose > * { max-width: 100%; }
.nm-prose h2 { font-size: 27px; margin: 1.6em 0 .6em; }
.nm-prose h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.nm-prose h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.nm-prose ul, .nm-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.nm-prose li { margin-bottom: .4em; }
.nm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.nm-prose img { height: auto; }
.nm-prose figure { margin: 1.6em 0; }
.nm-prose figcaption { font-size: 14px; color: var(--nm-muted); margin-top: 8px; }
.nm-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--nm-accent); color: var(--nm-muted); font-size: 19px; }
.nm-prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 16px; margin: 1.6em 0; }
.nm-prose th, .nm-prose td { border: 1px solid var(--nm-line); padding: 10px 12px; text-align: left; }
.nm-prose th { background: var(--nm-soft); }
.nm-prose code { background: var(--nm-soft); padding: 2px 6px; border-radius: 3px; font-size: .9em; }
.nm-prose pre { background: var(--nm-dark); color: #e8edf5; padding: 16px; overflow-x: auto; border-radius: 4px; }
.nm-prose pre code { background: none; padding: 0; }
.nm-article__foot { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--nm-line); }
.nm-tags { font-size: 14px; }
.nm-tags a { display: inline-block; background: var(--nm-soft); color: var(--nm-ink); padding: 4px 10px; margin: 0 4px 6px 0; border-radius: 3px; }
.nm-tags a:hover { background: var(--nm-line); }
.nm-pagelinks { margin: 20px 0; font-weight: 600; }
.nm-related { margin-top: 44px; }

@media (max-width: 767px) {
	.nm-article__title { font-size: 27px; }
	.nm-prose { font-size: 17px; }
	.nm-prose h2 { font-size: 23px; }
}

/* ---------- Arquivos ---------- */
.nm-archive__head { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--nm-accent); }
.nm-archive__title { font-size: 28px; margin: 0; }
.nm-archive__title span { color: var(--nm-accent); }
.nm-archive__desc { color: var(--nm-muted); margin-top: 8px; }

/* ---------- Paginacao ---------- */
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 14px; background: var(--nm-soft); color: var(--nm-ink); font-weight: 600; font-size: 14px; border-radius: 3px;
}
.pagination .page-numbers:hover { background: var(--nm-line); }
.pagination .page-numbers.current { background: var(--nm-accent); color: #fff; }

/* ---------- Comentarios ---------- */
.nm-comments { margin-top: 40px; }
.nm-comments__title { font-size: 22px; }
.nm-comments__list { list-style: none; }
.nm-comments__list .comment { border-bottom: 1px solid var(--nm-line); padding: 16px 0; }
.nm-comments__list .children { list-style: none; padding-left: 24px; }
.nm-comments .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.nm-comments input[type="text"], .nm-comments input[type="email"], .nm-comments input[type="url"], .nm-comments textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--nm-line); border-radius: 4px;
}
.nm-comments .submit { background: var(--nm-accent); color: #fff; border: 0; padding: 12px 22px; font: inherit; font-weight: 700; border-radius: 4px; cursor: pointer; }
.nm-comments .submit:hover { background: var(--nm-accent-dark); }

/* ---------- Rodape ---------- */
.nm-footer { background: var(--nm-dark); color: #c9d0db; margin-top: 20px; font-size: 14.5px; }
.nm-footer a { color: #e8edf5; }
.nm-footer a:hover { color: #fff; text-decoration: underline; }
.nm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-top: 40px; padding-bottom: 32px; }
.nm-footer__brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.nm-footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.nm-footer ul { list-style: none; }
.nm-footer li { padding: 5px 0; }
.nm-footer__bar { border-top: 1px solid #2a323f; padding: 16px 0; font-size: 13px; }
.nm-footer__bar p { margin: 0; }
@media (max-width: 767px) { .nm-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.nm-hero__item:hover .nm-img { transform: none; }
}
