/**
 * blog.google-style header, logo, mega menus, drawer, footer.
 */

:root {
	--nr-header-h: 64px;
}

/* --------------------------------------------------------------------------
   Header bar
   -------------------------------------------------------------------------- */

.nr-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nr-header.is-stuck,
.nr-header.is-scrolled,
.nr-header:focus-within {
	border-bottom-color: var(--nr-line, #dadce0);
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.nr-header__bar {
	max-width: var(--nr-max, 1440px);
	margin: 0 auto;
	padding: 0 var(--nr-gutter, 24px);
	min-height: var(--nr-header-h);
	display: flex;
	align-items: center;
	gap: 8px;
}

.nr-header__left {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.nr-header__home {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
	padding: 8px 4px;
}

.nr-header__home:hover {
	text-decoration: none;
	color: inherit;
}

/* Logo: mark + Musthave.AI (startup-clean, Grok/Claude/Skool energy) */
.nr-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.nr-logo__mark,
.nr-logo__mark--img,
.nr-logo svg.nr-logo__mark {
	display: block;
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	max-height: 32px !important;
	flex-shrink: 0;
	border-radius: 9px;
	object-fit: cover;
	box-shadow: 0 1px 2px rgba(15, 15, 20, 0.08);
}

.nr-logo__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nr-logo__text-main {
	font-family: var(--nr-font-display, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #0b0b0f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 48vw;
}

.nr-logo__dot {
	color: #6e56cf;
	font-weight: 700;
}

.nr-logo__ai {
	font-weight: 650;
	letter-spacing: -0.04em;
}

@media (min-width: 700px) {
	.nr-logo__text-main {
		max-width: none;
		font-size: 19px;
	}
}

/* Hide legacy WP custom-logo img if it ever appears inside header home */
.nr-header__home .custom-logo-link,
.nr-header__home .custom-logo {
	display: none !important;
}

/* Desktop nav — centered like blog.google */
.nr-nav {
	display: none;
	flex: 1;
	justify-content: center;
}

@media (min-width: 1024px) {
	.nr-nav {
		display: flex;
	}

	.nr-menu-toggle {
		display: none !important;
	}
}

.nr-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nr-nav__btn,
.nr-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	border: 0;
	background: transparent;
	font-family: var(--nr-font-body, inherit);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var(--nr-ink, #202124);
	padding: 10px 14px;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.nr-nav__btn:hover,
.nr-nav__link:hover,
.nr-nav__btn[aria-expanded="true"] {
	background: rgba(32, 33, 36, 0.06);
	color: var(--nr-ink, #202124);
	text-decoration: none;
}

.nr-nav__link--cta {
	color: var(--nr-blue, #1a73e8);
}

.nr-nav__link--cta:hover {
	background: #e8f0fe;
	color: var(--nr-blue-dark, #174ea6);
}

.nr-nav__caret {
	opacity: 0.7;
	transition: transform 0.15s ease;
}

.nr-nav__btn[aria-expanded="true"] .nr-nav__caret {
	transform: rotate(180deg);
}

.nr-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 2px;
}

.nr-icon-btn {
	border: 0;
	background: transparent;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--nr-ink-2, #5f6368);
	transition: background 0.15s ease, color 0.15s ease;
	padding: 0;
}

.nr-icon-btn:hover {
	background: rgba(32, 33, 36, 0.06);
	color: var(--nr-ink, #202124);
}

/* --------------------------------------------------------------------------
   Mega menus
   -------------------------------------------------------------------------- */

.nr-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--nr-line, #dadce0);
	box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
	padding: 28px 0 32px;
	animation: nr-mega-in 0.18s ease;
	z-index: 190;
}

@keyframes nr-mega-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nr-mega__inner {
	max-width: var(--nr-max, 1440px);
	margin: 0 auto;
	padding: 0 var(--nr-gutter, 24px);
}

.nr-mega__title {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--nr-ink-2, #5f6368);
	letter-spacing: 0.01em;
}

.nr-mega__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

@media (min-width: 900px) {
	.nr-mega__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px 20px;
	}
}

.nr-mega__card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 16px;
	color: var(--nr-ink, #202124);
	text-decoration: none;
	background: transparent;
	border: 1px solid transparent;
	min-height: 72px;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nr-mega__card:hover,
.nr-mega__card:focus-visible {
	background: #f8f9fa;
	border-color: #e8eaed;
	box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
	color: var(--nr-ink, #202124);
	text-decoration: none;
}

.nr-mega__card-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--nr-ink, #202124);
}

.nr-mega__card:hover .nr-mega__card-title {
	color: var(--nr-blue, #1a73e8);
}

.nr-mega__card-desc {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--nr-ink-2, #5f6368);
}

.nr-mega__foot {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--nr-line, #dadce0);
}

.nr-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--nr-blue, #1a73e8);
	text-decoration: none;
}

.nr-mega__all:hover {
	color: var(--nr-blue-dark, #174ea6);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.nr-search {
	border-top: 1px solid var(--nr-line, #dadce0);
	background: #fff;
	padding: 16px var(--nr-gutter, 24px) 20px;
}

.nr-search__form {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.nr-search__icon {
	position: absolute;
	left: 16px;
	color: var(--nr-ink-2, #5f6368);
	pointer-events: none;
}

.nr-search__input {
	flex: 1;
	height: 48px;
	border: 1px solid var(--nr-line, #dadce0);
	border-radius: 999px;
	padding: 0 16px 0 48px;
	font: inherit;
	font-size: 16px;
	background: #f8f9fa;
	outline: none;
	color: var(--nr-ink, #202124);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.nr-search__input:focus {
	background: #fff;
	border-color: var(--nr-blue, #1a73e8);
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.nr-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(32, 33, 36, 0.4);
	z-index: 300;
}

.nr-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(100%, 360px);
	background: #fff;
	z-index: 310;
	overflow-y: auto;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
	animation: nr-drawer-in 0.22s ease;
}

@keyframes nr-drawer-in {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}

.nr-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px 8px 16px;
	border-bottom: 1px solid var(--nr-line, #dadce0);
	min-height: var(--nr-header-h);
}

.nr-drawer__nav {
	padding: 20px var(--nr-gutter, 24px) 40px;
}

.nr-drawer__label {
	margin: 20px 0 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nr-ink-3, #80868b);
}

.nr-drawer__label:first-child {
	margin-top: 0;
}

.nr-drawer__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nr-drawer__links .nr-mega__card {
	min-height: 0;
	padding: 12px 10px;
	border-radius: 12px;
}

.nr-drawer__links .nr-mega__card-desc {
	font-size: 12px;
}

.nr-drawer__simple {
	display: block;
	padding: 12px 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--nr-ink, #202124);
	text-decoration: none;
	border-radius: 12px;
}

.nr-drawer__simple:hover {
	background: #f8f9fa;
	text-decoration: none;
	color: var(--nr-blue, #1a73e8);
}

/* --------------------------------------------------------------------------
   Footer — blog.google layout: logo → main links → legal → note
   -------------------------------------------------------------------------- */

.nr-footer {
	border-top: 1px solid #e8eaed;
	background: #f8f9fa;
	padding: 48px var(--nr-gutter, 24px) 56px;
	margin-top: 64px;
}

.nr-footer__inner {
	max-width: var(--nr-max, 1200px);
	margin: 0 auto;
}

.nr-footer__top {
	margin-bottom: 28px;
}

.nr-footer__logo {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
}

.nr-footer__logo:hover {
	text-decoration: none;
	opacity: 0.9;
}

.nr-footer__logo .nr-logo__text-main {
	font-size: 16px;
}

.nr-footer__logo .nr-logo__mark,
.nr-footer__logo svg.nr-logo__mark {
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	border-radius: 8px;
}

.nr-footer__nav {
	margin-bottom: 8px;
}

.nr-footer__list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.nr-footer__list > li {
	display: inline-flex;
	align-items: center;
}

/* blog.google-style separators between items */
.nr-footer__list > li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	margin: 0 12px 0 16px;
	background: #dadce0;
	opacity: 0.9;
}

.nr-footer__list a {
	color: #3c4043;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	padding: 4px 0;
}

.nr-footer__list a:hover {
	color: #1a73e8;
	text-decoration: none;
}

.nr-footer__list--legal {
	margin-bottom: 20px;
	gap: 4px 4px;
}

.nr-footer__list--legal > li:not(:last-child)::after {
	margin: 0 10px 0 12px;
	height: 10px;
	background: #dadce0;
}

.nr-footer__list--legal a {
	font-size: 12px;
	font-weight: 400;
	color: #5f6368;
}

.nr-footer__list--legal a:hover {
	color: #1a73e8;
}

.nr-footer__note {
	margin: 0;
	padding-top: 4px;
	font-size: 12px;
	color: #80868b;
	line-height: 1.5;
	max-width: 40rem;
}

@media (max-width: 600px) {
	.nr-footer {
		padding: 36px 20px 44px;
	}

	.nr-footer__list > li:not(:last-child)::after {
		margin: 0 10px 0 12px;
	}
}

/* Main content breathing room under sticky header */
.nr-main {
	min-height: 40vh;
}

/* Override old header rules that fight the new layout */
.nr-header .nr-wrap.nr-header-inner,
.nr-header-inner {
	display: contents;
}

.nr-header .nr-brand img {
	max-height: 30px;
	width: auto;
}

/* Old drawer/search ids no longer used as open panels */
.nr-drawer[hidden],
.nr-drawer-backdrop[hidden],
.nr-search[hidden],
.nr-mega[hidden] {
	display: none !important;
}

body.nr-drawer-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Article lede header (blog.google style — title, date/dek, author/share)
   -------------------------------------------------------------------------- */

.nr-breadcrumbs {
	padding: 20px 0 0;
}

.nr-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.nr-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	color: var(--nr-ink-3, #80868b);
}

.nr-breadcrumbs li:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 10px;
	border-right: 1.5px solid #9aa0a6;
	border-bottom: 1.5px solid #9aa0a6;
	transform: rotate(-45deg);
	opacity: 0.85;
}

.nr-breadcrumbs a {
	color: var(--nr-blue, #1a73e8);
	text-decoration: none;
}

.nr-breadcrumbs a:hover {
	color: var(--nr-blue-dark, #174ea6);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nr-breadcrumbs [aria-current="page"] {
	color: var(--nr-ink-2, #5f6368);
	font-weight: 400;
}

/* Lede block */
.nr-lede {
	max-width: 720px;
	margin: 0 auto;
	padding: 28px 0 8px;
}

.nr-lede__title {
	font-family: var(--nr-font-display, inherit);
	font-size: clamp(36px, 5.2vw, 52px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: var(--nr-ink, #202124);
	margin: 0 0 28px;
}

.nr-lede__meta {
	display: grid;
	grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
	gap: 16px 28px;
	align-items: start;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--nr-line-soft, #e8eaed);
}

.nr-lede__when {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 2px;
}

.nr-lede__date {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--nr-ink, #202124);
}

.nr-lede__read {
	font-size: 14px;
	line-height: 1.4;
	color: var(--nr-ink-2, #5f6368);
}

.nr-lede__updated {
	font-size: 12px;
	line-height: 1.35;
	color: var(--nr-ink-3, #80868b);
	margin-top: 2px;
}

.nr-lede__dek {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--nr-ink, #202124);
	font-weight: 400;
}

.nr-lede__byline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 20px 0 22px;
	border-bottom: 1px solid var(--nr-line-soft, #e8eaed);
	margin-bottom: 8px;
}

.nr-lede__author {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nr-lede__author-name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--nr-ink, #202124);
}

.nr-lede__author-name a {
	color: inherit;
	text-decoration: none;
}

.nr-lede__author-name a:hover {
	color: var(--nr-blue, #1a73e8);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nr-lede__author-role {
	font-size: 14px;
	line-height: 1.4;
	color: var(--nr-ink-2, #5f6368);
	font-weight: 400;
}

.nr-lede__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
	border: 0;
	background: transparent;
	padding: 8px 4px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--nr-ink, #202124);
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.nr-lede__share:hover {
	background: rgba(32, 33, 36, 0.06);
	color: var(--nr-blue, #1a73e8);
}

.nr-lede__share svg {
	display: block;
	opacity: 0.9;
}

.nr-lede__share.is-copied span::after {
	content: none;
}

.nr-lede__share.is-copied {
	color: var(--nr-blue, #1a73e8);
}

/* Lede sits above hero — tighten hero spacing after lede */
.nr-lede + .nr-wrap .nr-article-hero,
article .nr-lede ~ .nr-wrap .nr-article-hero {
	margin-top: 28px;
}

/* Single article body max-width alignment with lede when no TOC */
.single .nr-article-hero {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px) {
	.nr-lede {
		padding-top: 16px;
	}

	.nr-lede__title {
		font-size: clamp(30px, 8vw, 36px);
		margin-bottom: 20px;
	}

	.nr-lede__meta {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-bottom: 20px;
	}

	.nr-lede__when {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 8px 12px;
	}

	.nr-lede__when .nr-lede__updated {
		flex-basis: 100%;
	}

	.nr-lede__dek {
		font-size: 15px;
	}

	.nr-lede__byline {
		padding: 16px 0 18px;
	}
}

/* Static pages */
.nr-page {
	padding-bottom: 64px;
}

.nr-page-article {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 0 48px;
}

.nr-page-lede {
	margin-bottom: 28px;
}

.nr-page-lede .nr-lede__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	letter-spacing: -0.02em;
}

.nr-page-entry {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #3c4043;
}

.nr-page-entry h2 {
	margin: 2em 0 0.65em;
	font-size: 1.25rem;
	color: #0b0b0f;
	letter-spacing: -0.015em;
}

.nr-page-entry p {
	margin: 0 0 1.1em;
}

.nr-page-entry ul {
	margin: 0 0 1.25em;
	padding-left: 1.25em;
}

.nr-page-entry li {
	margin-bottom: 0.4em;
}

.nr-page-entry a {
	color: #1a73e8;
	text-decoration: none;
}

.nr-page-entry a:hover {
	text-decoration: underline;
}
