/* NewsBrew Homepage — front-end styles. Everything is scoped under .nbh */

body.nbh-front { margin: 0; background: #fff; }

.nbh {
	--nbh-accent: #C4291C;
	--nbh-ink: #121212;
	--nbh-muted: #555555;
	--nbh-body: #4A4A4A;
	--nbh-rule: #E4E2DE;
	--nbh-paper: #F6F4F0;
	--nbh-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--nbh-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--nbh-sans);
	color: var(--nbh-ink);
	background: #fff;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.nbh *, .nbh *::before, .nbh *::after { box-sizing: border-box; }
.nbh a { color: inherit; text-decoration: none; }
.nbh a:hover { color: var(--nbh-accent); }
.nbh a:focus-visible, .nbh button:focus-visible, .nbh summary:focus-visible, .nbh input:focus-visible { outline: 2px solid var(--nbh-accent); outline-offset: 2px; }
.nbh h1, .nbh h2, .nbh h3, .nbh p, .nbh ol, .nbh ul, .nbh fieldset { margin: 0; padding: 0; }
.nbh ul, .nbh ol { list-style: none; }
.nbh img { max-width: 100%; height: auto; display: block; }
.nbh hr.nbh-rule { border: 0; height: 1px; background: var(--nbh-rule); margin: 0; }

.nbh-wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.nbh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nbh-skip { position: absolute; left: -9999px; top: 8px; background: var(--nbh-ink); color: #fff !important; padding: 10px 16px; z-index: 1000; }
.nbh-skip:focus { left: 8px; }
.nbh-dot { color: var(--nbh-accent); }
.nbh-dot--light { color: #F2837A; }

/* Buttons */
.nbh .nbh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; background: var(--nbh-accent); color: #fff; font: 600 14px/1 var(--nbh-sans); letter-spacing: .01em; border: 0; border-radius: 4px; cursor: pointer; transition: filter .15s; }
.nbh .nbh-btn:hover { color: #fff; filter: brightness(.9); }
.nbh .nbh-btn--sm { min-height: 40px; padding: 10px 16px; font-size: 13px; }
.nbh .nbh-btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; }
.nbh .nbh-btn--outline { background: #fff; color: var(--nbh-ink); border: 1px solid #CFCBC4; }
.nbh .nbh-btn--outline:hover { color: var(--nbh-ink); border-color: var(--nbh-ink); filter: none; }
.nbh .nbh-btn--ghost { background: transparent; border: 1px solid #5A5A5A; }

/* Labels */
.nbh-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nbh-muted); }
.nbh-kicker--accent { color: var(--nbh-accent); }
.nbh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nbh-accent); }
.nbh-eyebrow--light { color: #F2837A; }
.nbh-meta { font-size: 13px; color: var(--nbh-muted); }
.nbh-more, .nbh-row__more { display: inline-block; padding: 12px 0; font-size: 13px; font-weight: 600; }
.nbh-more { color: var(--nbh-accent); }

/* Media */
.nbh-media { display: block; background: #E9E6E1; overflow: hidden; position: relative; }
.nbh-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s ease; }
.nbh-media:hover img { transform: scale(1.02); }
.nbh-media--16-10 { aspect-ratio: 16 / 10; }
.nbh-media--3-2 { aspect-ratio: 3 / 2; }

/* Top bar */
.nbh-topbar { border-bottom: 1px solid var(--nbh-rule); font-size: 13px; color: var(--nbh-muted); }
.nbh-topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.nbh-topbar__left { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nbh-topbar__date { font-weight: 600; color: var(--nbh-ink); }
.nbh-topbar__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nbh-topbar__right { display: flex; align-items: center; gap: 8px; }
.nbh-topbar__login { font-weight: 500; color: var(--nbh-ink); padding: 12px 8px; }
.nbh-search { position: relative; }
.nbh-search summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--nbh-ink); }
.nbh-search summary::-webkit-details-marker { display: none; }
.nbh-search__form { position: absolute; right: 0; top: 48px; z-index: 50; display: flex; gap: 8px; background: #fff; border: 1px solid var(--nbh-rule); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 12px; width: min(420px, 90vw); }
.nbh-search__form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #CFCBC4; border-radius: 4px; font: 400 15px var(--nbh-sans); }
.nbh-search__form button { height: 44px; padding: 0 16px; background: var(--nbh-ink); color: #fff; border: 0; border-radius: 4px; font: 600 14px var(--nbh-sans); cursor: pointer; }

/* Masthead */
.nbh-masthead { text-align: center; padding-top: 36px; padding-bottom: 24px; }
.nbh-masthead__wordmark { font-family: var(--nbh-serif); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -.02em; }
.nbh-masthead__wordmark a:hover { color: inherit; }
.nbh-masthead__logo img { max-height: 96px; width: auto; margin: 0 auto; }
.nbh-masthead__tagline { margin-top: 12px !important; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--nbh-muted); }

/* Nav */
.nbh-nav { border-top: 1px solid var(--nbh-ink); border-bottom: 1px solid var(--nbh-rule); }
.nbh-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; font-size: 14px; font-weight: 500; }
.nbh-nav__list a { display: block; padding: 14px 0; border-bottom: 2px solid transparent; }
.nbh-nav__list .current-menu-item > a { border-bottom-color: var(--nbh-accent); }

/* Breaking */
.nbh-breaking { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0; margin-top: 16px; border-bottom: 1px solid var(--nbh-rule); }
.nbh-badge { background: var(--nbh-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.nbh-breaking__text { font-family: var(--nbh-serif); font-size: 18px; font-weight: 500; }

/* Top stories */
.nbh-top { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 32px; padding-bottom: 56px; }
.nbh-lead { flex: 2 1 520px; min-width: 0; }
.nbh-lead .nbh-kicker { margin-top: 20px; font-size: 12px; }
.nbh-lead__title { margin-top: 10px !important; font-family: var(--nbh-serif); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; letter-spacing: -.015em; }
.nbh-lead__dek { margin-top: 14px !important; font-family: var(--nbh-serif); font-size: 21px; line-height: 1.45; color: #3A3A3A; }
.nbh-lead .nbh-meta { margin-top: 16px; }
.nbh-secondary, .nbh-latest { flex: 1 1 260px; min-width: 0; border-left: 1px solid var(--nbh-rule); padding-left: 32px; }
.nbh-secondary { display: flex; flex-direction: column; gap: 24px; }
.nbh-story .nbh-kicker { margin-top: 12px; }
.nbh-story .nbh-media + .nbh-kicker { margin-top: 12px; }
.nbh-story > .nbh-kicker:first-child { margin-top: 0; }
.nbh-story__title { margin-top: 6px !important; font-family: var(--nbh-serif); font-weight: 600; font-size: 22px; line-height: 1.18; }
.nbh-story__title--lg { font-size: 24px; }
.nbh-story__dek { margin-top: 8px !important; font-size: 15px; color: var(--nbh-body); }
.nbh-latest__title { display: flex; align-items: center; gap: 8px; font-family: var(--nbh-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--nbh-ink); }
.nbh-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--nbh-accent); animation: nbh-pulse 2s infinite; }
@keyframes nbh-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nbh-pulse { animation: none; } .nbh-media img { transition: none; } }
.nbh-latest__list li { padding: 16px 0; border-bottom: 1px solid var(--nbh-rule); }
.nbh-latest__list li:last-child { border-bottom: 0; }
.nbh-latest__meta { font-size: 12px; color: var(--nbh-muted); }
.nbh-latest__list a { display: block; margin-top: 4px; font-family: var(--nbh-serif); font-size: 18px; line-height: 1.3; font-weight: 500; }

/* Subscribe */
.nbh-subscribe { background: var(--nbh-ink); color: #fff; scroll-margin-top: 24px; }
.nbh-subscribe__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.nbh-subscribe__copy { flex: 3 1 520px; min-width: 0; }
.nbh-subscribe__inner--solo .nbh-subscribe__copy { max-width: 760px; }
.nbh-subscribe__title { margin-top: 18px !important; font-family: var(--nbh-serif); font-weight: 500; font-size: clamp(40px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -.02em; color: #fff; }
.nbh-subscribe__text { margin-top: 22px !important; max-width: 560px; font-family: var(--nbh-serif); font-size: 21px; line-height: 1.5; color: #CFCFCF; }
.nbh-subscribe__form, .nbh-subscribe__embed { margin-top: 36px; max-width: 620px; }
.nbh-subscribe__label { display: block; font-size: 13px; font-weight: 600; color: #E5E5E5; margin-bottom: 10px; }
.nbh-subscribe__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
/* !important: other plugins' form styles load on the page and would otherwise shrink the field. */
.nbh .nbh-subscribe__row input[type="email"],
.nbh .nbh-subscribe__row .nbh-btn {
	height: 60px !important;
	min-height: 60px !important;
	max-height: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	line-height: normal !important;
	vertical-align: top;
}
.nbh .nbh-subscribe__row input[type="email"] {
	flex: 1 1 280px; min-width: 0;
	padding: 0 20px !important;
	font: 400 18px var(--nbh-sans) !important;
	color: var(--nbh-ink) !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	-webkit-appearance: none; appearance: none;
}
.nbh .nbh-subscribe__row .nbh-btn { padding: 0 32px !important; }
.nbh-subscribe__interests { margin-top: 24px !important; border: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; color: #E5E5E5; }
.nbh-subscribe__interests legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.nbh-subscribe__interests label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.nbh-subscribe__interests input { width: 18px; height: 18px; accent-color: #fff; }
.nbh-subscribe__fine { margin-top: 18px !important; font-size: 13px; color: #A8A8A8; }
.nbh-subscribe__fine a { color: #E5E5E5; text-decoration: underline; }
.nbh-subscribe__fine a:hover { color: #fff; }
.nbh-admin-note { margin-top: 24px !important; padding: 10px 14px; background: #3A2A00; color: #FFE7A3; font-size: 13px; border-radius: 4px; }
.nbh-subscribe__preview { flex: 2 1 340px; min-width: 0; display: flex; justify-content: center; }
.nbh-mail { width: 100%; max-width: 400px; background: #fff; color: var(--nbh-ink); border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; transform: rotate(1.5deg); }
.nbh-mail__head { padding: 22px 26px; border-bottom: 1px solid var(--nbh-rule); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nbh-mail__name { font-family: var(--nbh-serif); font-weight: 700; font-size: 24px; }
.nbh-mail__time { font-size: 11px; color: var(--nbh-muted); white-space: nowrap; }
.nbh-mail__body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.nbh-mail__item { display: flex; gap: 14px; font-family: var(--nbh-serif); font-size: 17px; line-height: 1.3; font-weight: 500; }
.nbh-mail__num { font-size: 26px; font-weight: 600; color: #B5B0A8; line-height: 1; min-width: 16px; }

/* Category rows */
.nbh-row { padding-top: 64px; padding-bottom: 24px; }
.nbh-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--nbh-ink); padding-top: 14px; margin-bottom: 28px; }
.nbh-row__title { font-family: var(--nbh-serif); font-size: 32px; font-weight: 600; }
.nbh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.nbh-card__title { margin-top: 14px !important; font-family: var(--nbh-serif); font-size: 21px; line-height: 1.2; font-weight: 600; }
.nbh-card__dek { margin-top: 8px !important; font-size: 14px; color: var(--nbh-body); }
.nbh-card .nbh-meta { margin-top: 10px; font-size: 12px; }

/* Ad */
.nbh-ad { padding-top: 40px; padding-bottom: 40px; text-align: center; }
.nbh-ad__label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--nbh-muted); margin-bottom: 8px; }
.nbh-ad__slot { display: flex; justify-content: center; min-height: 90px; }
.nbh-ad__empty { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 970px; min-height: 120px; background: var(--nbh-paper); border: 1px dashed #CFCBC4; color: var(--nbh-muted); font-size: 13px; padding: 16px; }

/* Polls */
.nbh-polls { background: var(--nbh-paper); border-top: 1px solid var(--nbh-rule); border-bottom: 1px solid var(--nbh-rule); padding: 64px 0; margin-top: 24px; }
.nbh-polls__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.nbh-polls__title { margin-top: 8px !important; font-family: var(--nbh-serif); font-size: 40px; font-weight: 600; letter-spacing: -.01em; }
.nbh-polls__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.nbh-poll { background: #fff; border: 1px solid var(--nbh-rule); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.nbh-poll__q { font-family: var(--nbh-serif); font-size: 25px; line-height: 1.22; font-weight: 600; }
.nbh-poll__dek { font-size: 15px; color: var(--nbh-body); }
.nbh-poll .nbh-btn { align-self: flex-start; margin-top: auto; }
.nbh-poll__note { font-size: 12px; color: var(--nbh-muted); }
.nbh-petition { background: var(--nbh-ink); color: #fff; border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.nbh-petition__title { font-family: var(--nbh-serif); font-size: 28px; line-height: 1.18; font-weight: 500; }
.nbh-petition__text { font-size: 15px; line-height: 1.55; color: #CFCFCF; }
.nbh-petition__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* Trust */
.nbh-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.nbh-trust__item { display: flex; gap: 14px; }
.nbh-trust__item svg { flex: none; }
.nbh-trust__title { font-family: var(--nbh-sans); font-size: 15px; font-weight: 600; }
.nbh-trust__text { margin-top: 4px !important; font-size: 14px; color: var(--nbh-body); }

/* Custom HTML */
.nbh-html { padding-top: 48px; padding-bottom: 48px; }

/* Footer */
.nbh-footer { background: var(--nbh-ink); color: #E5E5E5; padding: 64px 0 32px; }
.nbh-footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.nbh-footer__brand { flex: 1 1 280px; min-width: 0; }
.nbh-footer__brand p { margin-top: 12px !important; font-size: 14px; color: #B5B5B5; max-width: 300px; }
.nbh-footer__wordmark { font-family: var(--nbh-serif); font-weight: 700; font-size: 40px; color: #fff; line-height: 1.1; }
.nbh-footer__col { flex: 0 1 180px; }
.nbh-footer__heading { font-family: var(--nbh-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px !important; }
.nbh-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.nbh-footer__list a, .nbh-footer__legal a { color: #B5B5B5; }
.nbh-footer__list a:hover, .nbh-footer__legal a:hover { color: #fff; }
.nbh-footer__bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid #333; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; color: #A8A8A8; }
.nbh-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Small screens */
@media (max-width: 860px) {
	.nbh-secondary, .nbh-latest { border-left: 0; padding-left: 0; border-top: 1px solid var(--nbh-rule); padding-top: 24px; }
	.nbh-top { gap: 32px; }
	.nbh-subscribe__inner { padding-top: 64px; padding-bottom: 64px; gap: 48px; }
	.nbh-mail { transform: none; }
}
@media (max-width: 600px) {
	.nbh-wrap { padding-left: 20px; padding-right: 20px; }
	.nbh-topbar__links { display: none; }
	.nbh-nav__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0 22px; scrollbar-width: none; }
	.nbh-nav__list li { flex: none; }
	.nbh-lead__dek { font-size: 18px; }
	.nbh-subscribe__text { font-size: 18px; }
	.nbh .nbh-btn--lg { width: 100%; }
	.nbh-row__title { font-size: 26px; }
	.nbh-polls__title { font-size: 30px; }
	.nbh-polls__grid { grid-template-columns: 1fr; }
}
