/*
Theme Name: Nipponese Newsroom
Template: hello-elementor
Version: 1.0.1
Description: A lean editorial child theme for Nipponese News.
*/

:root {
	--np-ink: #0b0f14;
	--np-muted: #5d6975;
	--np-line: #d9dee5;
	--np-paper: #ffffff;
	--np-soft: #f4f6f8;
	--np-accent: #d71920;
	--np-accent-dark: #a70f15;
	--np-max: 1248px;
	--np-serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
	--np-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--np-paper);
	color: var(--np-ink);
	font-family: var(--np-sans);
	line-height: 1.7;
}

a {
	color: inherit;
	text-decoration-color: rgba(215, 25, 32, 0.45);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--np-accent);
}

.site-header {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--np-line);
	position: sticky;
	top: 0;
	z-index: 20;
}

.site-header .header-inner {
	max-width: var(--np-max);
	min-height: 68px;
}

.site-branding .site-title,
.site-branding .site-logo {
	font-family: var(--np-serif);
	font-size: 28px;
	font-weight: 900;
}

.site-description {
	color: var(--np-muted);
	font-size: 13px;
}

.site-navigation ul.menu li a {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.np-wrap {
	margin: 0 auto;
	max-width: var(--np-max);
	padding: 0 22px;
}

.home .site-header {
	display: none;
}

.home .wpa,
.home .jetpack-wordads,
.home .wordads-ad-wrapper,
.home [id^="atatags-"],
.home [class*="wordads"],
.home ins.adsbygoogle {
	display: none !important;
}

.np-bbc-front {
	background: #fff;
}

.np-bbc-masthead {
	background: #fff;
	border-bottom: 1px solid #d8d8d8;
	color: #111;
}

.np-bbc-masthead-inner {
	align-items: center;
	display: flex;
	gap: 22px;
	min-height: 66px;
}

.np-bbc-logo {
	display: inline-flex;
	gap: 4px;
	text-decoration: none;
}

.np-bbc-logo span {
	align-items: center;
	background: #000;
	color: #fff;
	display: inline-flex;
	font-size: 22px;
	font-weight: 900;
	height: 36px;
	justify-content: center;
	line-height: 1;
	width: 36px;
}

.np-bbc-masthead-inner > div:not([class]),
.np-bbc-masthead-inner > div[class=""] {
	display: none !important;
}

.np-bbc-main-nav {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 0;
	min-width: 0;
	overflow-x: auto;
}

.np-bbc-main-nav a {
	border-left: 1px solid #d8d8d8;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 800;
	padding: 18px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.np-bbc-main-nav a:hover,
.np-bbc-main-nav a:focus {
	box-shadow: inset 0 -4px 0 var(--np-accent);
	color: #000;
}

.np-bbc-search {
	align-items: center;
	background: #f1f1f1;
	display: flex;
	flex: 0 0 236px;
	gap: 8px;
	padding: 11px 12px;
}

.np-bbc-search label {
	color: #111;
	font-size: 13px;
	font-weight: 900;
}

.np-bbc-search input {
	background: transparent;
	border: 0;
	color: #111;
	font-size: 14px;
	min-width: 0;
	outline: 0;
	width: 100%;
}

.np-bbc-welcome {
	border-bottom: 1px solid #ececec;
	padding: 20px 0 18px;
}

.np-bbc-welcome h1 {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.12;
	margin: 0;
}

.np-bbc-top {
	background: #f6f6f6;
	padding: 18px 0 26px;
}

.np-bbc-story-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(410px, 2fr) repeat(3, minmax(0, 1fr));
}

.np-bbc-lead,
.np-bbc-card,
.np-bbc-headline-card {
	background: #fff;
	min-width: 0;
}

.np-bbc-lead {
	grid-row: span 2;
}

.np-bbc-image {
	aspect-ratio: 16 / 9;
	background: #e8ecef;
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.np-bbc-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.np-image-fallback {
	align-items: center;
	background: linear-gradient(135deg, #202124 0%, #4f6f75 100%);
	color: #fff;
	display: flex;
	font-size: 15px;
	font-weight: 900;
	height: 100%;
	justify-content: center;
	min-height: 160px;
	text-transform: uppercase;
}

.np-bbc-copy {
	padding: 12px 14px 16px;
}

.np-bbc-lead .np-bbc-copy {
	padding: 16px 16px 18px;
}

.np-bbc-lead h2,
.np-bbc-card h3,
.np-bbc-headline-card h3,
.np-bbc-briefing h3 {
	font-weight: 900;
	letter-spacing: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.np-bbc-lead h2 {
	font-size: 32px;
	line-height: 1.08;
	margin-bottom: 10px;
}

.np-bbc-lead p {
	color: #545454;
	font-size: 16px;
	line-height: 1.45;
	margin: 0 0 76px;
}

.np-bbc-card h3,
.np-bbc-headline-card h3 {
	font-size: 20px;
	line-height: 1.16;
	margin-bottom: 34px;
}

.np-bbc-meta {
	align-items: center;
	color: #606060;
	display: flex;
	font-size: 13px;
	font-weight: 650;
	gap: 7px;
	line-height: 1.2;
	margin-top: auto;
}

.np-bbc-meta span {
	background: var(--np-accent);
	display: inline-block;
	height: 9px;
	width: 9px;
}

.np-bbc-section-title {
	align-items: center;
	border-top: 2px solid #111;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
	padding-top: 14px;
}

.np-bbc-section-title h2,
.np-bbc-briefing h2 {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.15;
	margin: 0;
}

.np-bbc-section-title a {
	font-size: 16px;
	font-weight: 900;
	text-decoration: none;
}

.np-bbc-section-title a::after {
	content: " >";
}

.np-bbc-headlines {
	padding: 28px 0 36px;
}

.np-bbc-headline-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.np-bbc-headline-card {
	border-bottom: 1px solid #d8d8d8;
	padding-bottom: 14px;
}

.np-bbc-headline-card .np-bbc-image {
	margin-bottom: 12px;
}

.np-bbc-briefing {
	background: #202124;
	color: #fff;
	padding: 30px 0 36px;
}

.np-bbc-briefing h2 {
	border-top: 2px solid #fff;
	margin-bottom: 18px;
	padding-top: 14px;
}

.np-bbc-briefing-list {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-bbc-briefing article {
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	padding-top: 14px;
}

.np-bbc-briefing h3 {
	font-size: 21px;
	line-height: 1.18;
	margin-bottom: 8px;
}

.np-bbc-briefing p {
	color: #d5dce0;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 14px;
}

.np-bbc-briefing .np-bbc-meta {
	color: #d5dce0;
}

.np-kicker {
	color: var(--np-accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	gap: 8px;
	text-transform: uppercase;
}

.np-kicker::before {
	background: var(--np-accent);
	content: "";
	display: inline-block;
	height: 10px;
	margin-top: 6px;
	width: 10px;
}

.np-home-hero {
	border-bottom: 1px solid var(--np-line);
	padding: 34px 0 30px;
}

.np-hero-grid {
	align-items: stretch;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.np-hero-media {
	aspect-ratio: 16 / 9;
	background: var(--np-soft);
	overflow: hidden;
}

.np-hero-media img,
.np-card-thumb img,
.np-article-hero img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.np-hero-copy {
	align-self: center;
	padding: 8px 0;
}

.np-hero-copy h1 {
	font-family: var(--np-serif);
	font-size: 56px;
	font-weight: 900;
	line-height: 1.03;
	margin: 12px 0 16px;
}

.np-hero-copy p {
	color: var(--np-muted);
	font-size: 18px;
	margin: 0 0 22px;
}

.np-meta {
	color: var(--np-muted);
	font-size: 13px;
	font-weight: 650;
}

.np-button {
	background: var(--np-ink);
	border: 1px solid var(--np-ink);
	border-radius: 6px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	padding: 11px 16px;
	text-decoration: none;
}

.np-button:hover,
.np-button:focus {
	background: var(--np-accent);
	border-color: var(--np-accent);
	color: #fff;
}

.np-section {
	padding: 34px 0;
}

.np-section-head {
	align-items: end;
	border-bottom: 2px solid var(--np-ink);
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 10px;
}

.np-section-head h2,
.np-archive-title,
.np-single-title {
	font-family: var(--np-serif);
	font-weight: 900;
	line-height: 1.08;
	margin: 0;
}

.np-section-head h2 {
	font-size: 36px;
}

.np-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.np-card {
	border-bottom: 1px solid var(--np-line);
	min-width: 0;
	padding-bottom: 18px;
}

.np-card-thumb {
	aspect-ratio: 4 / 3;
	background: var(--np-soft);
	margin-bottom: 12px;
	overflow: hidden;
}

.np-card h2,
.np-card h3 {
	font-family: var(--np-serif);
	font-size: 23px;
	font-weight: 900;
	line-height: 1.18;
	margin: 0 0 8px;
	overflow-wrap: anywhere;
}

.np-card p {
	color: var(--np-muted);
	font-size: 14px;
	margin: 0;
}

.np-category-row {
	background: var(--np-ink);
	color: #fff;
	padding: 12px 0;
}

.np-category-row .np-wrap {
	display: flex;
	gap: 10px;
	overflow-x: auto;
}

.np-category-row a {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 6px;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	padding: 7px 10px;
	text-decoration: none;
}

.np-category-row a:hover,
.np-category-row a:focus {
	background: #fff;
	color: var(--np-ink);
}

.np-archive-header {
	background: var(--np-soft);
	border-bottom: 1px solid var(--np-line);
	padding: 36px 0;
}

.np-archive-title {
	font-size: 52px;
}

.np-pagination {
	border-top: 1px solid var(--np-line);
	margin-top: 28px;
	padding-top: 22px;
}

.np-pagination .page-numbers {
	border: 1px solid var(--np-line);
	border-radius: 6px;
	display: inline-flex;
	font-weight: 800;
	margin: 0 4px 8px 0;
	padding: 8px 12px;
	text-decoration: none;
}

.np-pagination .current {
	background: var(--np-ink);
	color: #fff;
}

.np-single-header {
	border-bottom: 1px solid var(--np-line);
	padding: 34px 0 22px;
}

.np-single-title {
	font-size: 64px;
	max-width: 1000px;
	overflow-wrap: anywhere;
}

.np-article-hero {
	aspect-ratio: 16 / 8;
	background: var(--np-soft);
	margin: 24px auto 0;
	max-width: var(--np-max);
	overflow: hidden;
}

.np-article-body {
	display: grid;
	gap: 34px;
	grid-template-columns: minmax(0, 760px) 260px;
	padding: 34px 22px;
}

.np-content {
	font-size: 19px;
	line-height: 1.85;
	min-width: 0;
}

.np-content img {
	height: auto;
	max-width: 100%;
}

.np-content p {
	margin: 0 0 1.2em;
}

.np-content h2,
.np-content h3 {
	font-family: var(--np-serif);
	line-height: 1.18;
	margin: 1.4em 0 0.5em;
}

.np-side {
	border-left: 1px solid var(--np-line);
	padding-left: 22px;
}

.np-side h2 {
	font-size: 14px;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.np-side a {
	display: block;
	font-family: var(--np-serif);
	font-weight: 900;
	line-height: 1.25;
	margin-bottom: 14px;
	text-decoration: none;
}

.np-footer-note {
	background: var(--np-ink);
	color: #fff;
	padding: 28px 0;
}

@media (max-width: 1100px) {
	.np-bbc-story-grid,
	.np-bbc-headline-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.np-bbc-lead {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.np-bbc-lead p {
		margin-bottom: 24px;
	}

	.np-bbc-search {
		flex-basis: 190px;
	}
}

@media (max-width: 900px) {
	.np-hero-grid,
	.np-article-body {
		grid-template-columns: 1fr;
	}

	.np-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.np-side {
		border-left: 0;
		border-top: 1px solid var(--np-line);
		padding-left: 0;
		padding-top: 22px;
	}

	.np-hero-copy h1 {
		font-size: 42px;
	}

	.np-single-title {
		font-size: 48px;
	}

	.np-archive-title {
		font-size: 42px;
	}

	.np-bbc-masthead-inner {
		align-items: stretch;
		flex-wrap: wrap;
		gap: 10px;
		padding-bottom: 12px;
		padding-top: 12px;
	}

	.np-bbc-main-nav {
		flex-basis: 100%;
		order: 3;
	}

	.np-bbc-search {
		margin-left: auto;
	}

	.np-bbc-briefing-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.np-wrap,
	.np-article-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.np-grid {
		grid-template-columns: 1fr;
	}

	.np-bbc-story-grid,
	.np-bbc-headline-grid {
		grid-template-columns: 1fr;
	}

	.np-section-head {
		align-items: start;
		flex-direction: column;
		gap: 8px;
	}

	.np-content {
		font-size: 17px;
	}

	.np-hero-copy h1,
	.np-single-title,
	.np-archive-title {
		font-size: 34px;
	}

	.np-section-head h2,
	.np-bbc-welcome h1,
	.np-bbc-lead h2 {
		font-size: 28px;
	}

	.np-bbc-section-title h2,
	.np-bbc-briefing h2 {
		font-size: 24px;
	}

	.np-bbc-card h3,
	.np-bbc-headline-card h3,
	.np-bbc-briefing h3 {
		font-size: 19px;
	}

	.np-bbc-logo span {
		height: 32px;
		width: 32px;
	}

	.np-bbc-search {
		flex-basis: 100%;
		margin-left: 0;
		order: 2;
	}

	.np-bbc-main-nav a {
		font-size: 13px;
		padding: 12px 10px;
	}

	.np-bbc-lead p {
		font-size: 15px;
		margin-bottom: 18px;
	}
}
